home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / AppleScript™ 1.1 / AppleScript™ Setup / User Release Notes / AppleScript / General Notes < prev    next >
Unknown  |  1993-12-10  |  16.7 KB  |  [QUIL/quil]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default


id metadata
keyvalue
macFileType[QUIL]
macFileCreator[quil]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 00 00 35 98 47 65 | 6e 65 72 61 6c 20 4e 6f |....5.Ge|neral No|
|00000010| 74 65 73 0d 0d 54 68 69 | 73 20 64 6f 63 75 6d 65 |tes..Thi|s docume|
|00000020| 6e 74 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |nt conta|ins the |
|00000030| 66 6f 6c 6c 6f 77 69 6e | 67 20 69 6e 66 6f 72 6d |followin|g inform|
|00000040| 61 74 69 6f 6e 3a 0d 0d | 20 20 20 20 20 31 2e 20 |ation:..| 1. |
|00000050| 54 68 65 20 53 74 6f 72 | 79 20 6f 66 20 4c 69 73 |The Stor|y of Lis|
|00000060| 74 73 0d 20 20 20 20 20 | 32 2e 20 45 61 73 69 65 |ts. |2. Easie|
|00000070| 72 20 45 72 72 6f 72 20 | 48 61 6e 64 6c 69 6e 67 |r Error |Handling|
|00000080| 0d 20 20 20 20 20 33 2e | 20 42 6c 6f 63 6b 20 43 |. 3.| Block C|
|00000090| 6f 6d 6d 65 6e 74 73 0d | 20 20 20 20 20 34 2e 20 |omments.| 4. |
|000000a0| 54 69 6d 65 6f 75 74 73 | 0d 0d 0d 54 68 65 20 53 |Timeouts|...The S|
|000000b0| 74 6f 72 79 20 6f 66 20 | 4c 69 73 74 73 0d 0d 52 |tory of |Lists..R|
|000000c0| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 61 6e |epresent|ation an|
|000000d0| 64 20 45 66 66 69 63 69 | 65 6e 63 79 0d 0d 54 68 |d Effici|ency..Th|
|000000e0| 65 20 77 61 79 20 69 6e | 20 77 68 69 63 68 20 6c |e way in| which l|
|000000f0| 69 73 74 73 20 61 72 65 | 20 72 65 70 72 65 73 65 |ists are| represe|
|00000100| 6e 74 65 64 20 69 6e 20 | 6d 65 6d 6f 72 79 20 68 |nted in |memory h|
|00000110| 61 73 20 63 68 61 6e 67 | 65 64 20 66 72 6f 6d 20 |as chang|ed from |
|00000120| 41 70 70 6c 65 53 63 72 | 69 70 74 20 31 2e 30 20 |AppleScr|ipt 1.0 |
|00000130| 74 6f 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 31 |to Apple|Script 1|
|00000140| 2e 31 2c 20 61 6e 64 20 | 63 6f 72 72 65 73 70 6f |.1, and |correspo|
|00000150| 6e 64 69 6e 67 6c 79 2c | 20 74 68 65 20 63 68 61 |ndingly,| the cha|
|00000160| 72 61 63 74 65 72 69 73 | 74 69 63 73 20 6f 66 20 |racteris|tics of |
|00000170| 74 68 65 73 65 20 76 61 | 6c 75 65 73 20 68 61 73 |these va|lues has|
|00000180| 20 63 68 61 6e 67 65 64 | 20 77 69 74 68 20 72 65 | changed| with re|
|00000190| 73 70 65 63 74 20 74 6f | 20 65 66 66 69 63 69 65 |spect to| efficie|
|000001a0| 6e 63 79 2e 20 45 66 66 | 69 63 69 65 6e 63 79 20 |ncy. Eff|iciency |
|000001b0| 69 6e 76 6f 6c 76 65 73 | 20 62 6f 74 68 20 74 68 |involves| both th|
|000001c0| 65 20 61 6d 6f 75 6e 74 | 20 6f 66 20 74 69 6d 65 |e amount| of time|
|000001d0| 20 69 74 20 74 61 6b 65 | 73 20 74 6f 20 70 65 72 | it take|s to per|
|000001e0| 66 6f 72 6d 20 63 65 72 | 74 61 69 6e 20 6f 70 65 |form cer|tain ope|
|000001f0| 72 61 74 69 6f 6e 73 2c | 20 61 6e 64 20 74 68 65 |rations,| and the|
|00000200| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 73 70 61 63 65 | amount |of space|
|00000210| 20 74 68 65 73 65 20 76 | 61 6c 75 65 73 20 63 6f | these v|alues co|
|00000220| 6e 73 75 6d 65 2e 20 41 | 64 64 69 74 69 6f 6e 61 |nsume. A|dditiona|
|00000230| 6c 6c 79 2c 20 63 65 72 | 74 61 69 6e 20 6f 70 65 |lly, cer|tain ope|
|00000240| 72 61 74 69 6f 6e 73 20 | 63 61 6e 20 67 65 6e 65 |rations |can gene|
|00000250| 72 61 74 65 20 69 6e 74 | 65 72 6d 65 64 69 61 74 |rate int|ermediat|
|00000260| 65 20 76 61 6c 75 65 73 | 20 28 67 61 72 62 61 67 |e values| (garbag|
|00000270| 65 29 20 74 68 61 74 20 | 61 72 65 20 61 75 74 6f |e) that |are auto|
|00000280| 6d 61 74 69 63 61 6c 6c | 79 20 72 65 63 6c 61 69 |maticall|y reclai|
|00000290| 6d 65 64 20 62 79 20 41 | 70 70 6c 65 53 63 72 69 |med by A|ppleScri|
|000002a0| 70 74 2e 20 54 68 65 20 | 6d 6f 72 65 20 6f 66 20 |pt. The |more of |
|000002b0| 74 68 65 73 65 20 69 6e | 74 65 72 6d 65 64 69 61 |these in|termedia|
|000002c0| 74 65 20 76 61 6c 75 65 | 73 2c 20 74 68 65 20 6d |te value|s, the m|
|000002d0| 6f 72 65 20 6f 66 74 65 | 6e 20 74 68 65 20 74 69 |ore ofte|n the ti|
|000002e0| 6d 65 2d 63 6f 6e 73 75 | 6d 69 6e 67 20 6f 70 65 |me-consu|ming ope|
|000002f0| 72 61 74 69 6f 6e 20 6f | 66 20 63 6f 6c 6c 65 63 |ration o|f collec|
|00000300| 74 69 6e 67 20 74 68 65 | 6d 20 6d 75 73 74 20 6f |ting the|m must o|
|00000310| 63 63 75 72 2e 0d 0d 49 | 6e 20 41 70 70 6c 65 53 |ccur...I|n AppleS|
|00000320| 63 72 69 70 74 20 31 2e | 30 2c 20 6c 69 73 74 73 |cript 1.|0, lists|
|00000330| 20 77 65 72 65 20 72 65 | 70 72 65 73 65 6e 74 65 | were re|presente|
|00000340| 64 20 61 73 20 6c 69 6e | 6b 65 64 20 6c 69 73 74 |d as lin|ked list|
|00000350| 73 20 69 6e 20 6d 65 6d | 6f 72 79 2e 20 4c 69 6e |s in mem|ory. Lin|
|00000360| 6b 65 64 20 6c 69 73 74 | 73 20 6d 65 61 6e 73 20 |ked list|s means |
|00000370| 74 68 61 74 20 65 61 63 | 68 20 69 74 65 6d 20 77 |that eac|h item w|
|00000380| 61 73 20 6c 69 6e 6b 65 | 64 20 74 6f 20 74 68 65 |as linke|d to the|
|00000390| 20 6e 65 78 74 20 76 69 | 61 20 61 6e 20 69 6e 74 | next vi|a an int|
|000003a0| 65 72 6e 61 6c 20 70 6f | 69 6e 74 65 72 2e 20 4f |ernal po|inter. O|
|000003b0| 6e 20 74 68 65 20 70 6f | 73 69 74 69 76 65 20 73 |n the po|sitive s|
|000003c0| 69 64 65 2c 20 6c 69 6e | 6b 65 64 20 6c 69 73 74 |ide, lin|ked list|
|000003d0| 73 20 64 69 64 6e 27 74 | 20 74 61 6b 65 20 75 70 |s didn't| take up|
|000003e0| 20 6d 75 63 68 20 6d 65 | 6d 6f 72 79 2c 20 61 6e | much me|mory, an|
|000003f0| 64 20 63 6f 6e 63 61 74 | 65 6e 61 74 69 6e 67 20 |d concat|enating |
|00000400| 6e 65 77 20 69 74 65 6d | 20 28 61 74 20 6c 65 61 |new item| (at lea|
|00000410| 73 74 20 6f 6e 20 74 68 | 65 20 6c 65 66 74 2d 68 |st on th|e left-h|
|00000420| 61 6e 64 20 73 69 64 65 | 29 20 77 61 73 20 72 65 |and side|) was re|
|00000430| 6c 61 74 69 76 65 6c 79 | 20 66 61 73 74 20 61 6e |latively| fast an|
|00000440| 64 20 64 69 64 6e 27 74 | 20 63 72 65 61 74 65 20 |d didn't| create |
|00000450| 61 6e 79 20 67 61 72 62 | 61 67 65 3a 0d 0d 4f 6e |any garb|age:..On|
|00000460| 20 74 68 65 20 6e 65 67 | 61 74 69 76 65 20 73 69 | the neg|ative si|
|00000470| 64 65 2c 20 6c 69 6e 6b | 65 64 20 6c 69 73 74 73 |de, link|ed lists|
|00000480| 20 74 6f 6f 6b 20 6c 6f | 6e 67 65 72 20 74 6f 20 | took lo|nger to |
|00000490| 72 65 61 63 68 20 65 6c | 65 6d 65 6e 74 73 20 61 |reach el|ements a|
|000004a0| 74 20 68 69 67 68 65 72 | 20 69 6e 64 69 63 69 65 |t higher| indicie|
|000004b0| 73 20 74 68 61 6e 20 74 | 68 65 79 20 64 69 64 20 |s than t|hey did |
|000004c0| 74 6f 20 72 65 61 63 68 | 20 65 6c 65 6d 65 6e 74 |to reach| element|
|000004d0| 73 20 61 74 20 6c 6f 77 | 65 72 20 69 6e 64 69 63 |s at low|er indic|
|000004e0| 69 65 73 20 28 69 2e 65 | 2e 20 74 68 65 20 61 63 |ies (i.e|. the ac|
|000004f0| 63 65 73 73 20 74 69 6d | 65 20 77 61 73 20 6c 69 |cess tim|e was li|
|00000500| 6e 65 61 72 20 28 69 6e | 63 72 65 61 73 65 64 20 |near (in|creased |
|00000510| 70 72 6f 70 6f 72 74 69 | 6f 6e 61 6c 6c 79 29 20 |proporti|onally) |
|00000520| 74 6f 20 74 68 65 20 69 | 6e 64 65 78 20 6f 66 20 |to the i|ndex of |
|00000530| 74 68 65 20 69 74 65 6d | 20 62 65 69 6e 67 20 61 |the item| being a|
|00000540| 63 63 65 73 73 65 64 29 | 2e 20 54 68 69 73 20 69 |ccessed)|. This i|
|00000550| 73 20 62 65 63 61 75 73 | 65 20 74 68 65 20 6c 69 |s becaus|e the li|
|00000560| 73 74 20 68 61 64 20 74 | 6f 20 62 65 20 74 72 61 |st had t|o be tra|
|00000570| 76 65 72 73 65 64 20 66 | 72 6f 6d 20 62 65 67 69 |versed f|rom begi|
|00000580| 6e 6e 69 6e 67 2c 20 63 | 6f 75 6e 74 69 6e 67 20 |nning, c|ounting |
|00000590| 75 70 20 74 6f 20 74 68 | 65 20 69 6e 64 65 78 20 |up to th|e index |
|000005a0| 6f 66 20 74 68 65 20 69 | 74 65 6d 20 64 65 73 69 |of the i|tem desi|
|000005b0| 72 65 64 2e 20 41 6c 73 | 6f 2c 20 69 66 20 79 6f |red. Als|o, if yo|
|000005c0| 75 20 77 65 72 65 20 75 | 6e 66 6f 72 74 75 6e 61 |u were u|nfortuna|
|000005d0| 74 65 20 65 6e 6f 75 67 | 68 20 74 6f 20 63 6f 6e |te enoug|h to con|
|000005e0| 63 61 74 65 6e 61 74 65 | 20 6f 6e 20 74 68 65 20 |catenate| on the |
|000005f0| 72 69 67 68 74 2d 68 61 | 6e 64 20 73 69 64 65 2c |right-ha|nd side,|
|00000600| 20 74 68 65 20 65 6e 74 | 69 72 65 20 6c 65 66 74 | the ent|ire left|
|00000610| 2d 68 61 6e 64 20 73 69 | 64 65 20 6f 66 20 74 68 |-hand si|de of th|
|00000620| 65 20 6c 69 73 74 20 77 | 6f 75 6c 64 20 68 61 76 |e list w|ould hav|
|00000630| 65 20 74 6f 20 62 65 20 | 63 6f 70 69 65 64 2e 20 |e to be |copied. |
|00000640| 54 68 69 73 20 69 73 20 | 62 65 63 61 75 73 65 20 |This is |because |
|00000650| 77 65 20 6d 75 73 74 6e | 27 74 20 63 68 61 6e 67 |we mustn|'t chang|
|00000660| 65 20 74 68 65 20 6c 65 | 66 74 2d 68 61 6e 64 20 |e the le|ft-hand |
|00000670| 73 69 64 65 20 76 61 6c | 75 65 20 74 6f 20 70 65 |side val|ue to pe|
|00000680| 72 6d 69 6e 61 6e 74 6c | 79 20 62 65 20 63 6f 6e |rminantl|y be con|
|00000690| 63 61 74 65 6e 61 74 65 | 64 20 77 69 74 68 20 74 |catenate|d with t|
|000006a0| 68 65 20 72 69 67 68 74 | 2d 68 61 6e 64 20 73 69 |he right|-hand si|
|000006b0| 64 65 20 62 65 63 61 75 | 73 65 20 6f 74 68 65 72 |de becau|se other|
|000006c0| 20 70 61 72 74 73 20 6f | 66 20 74 68 65 20 70 72 | parts o|f the pr|
|000006d0| 6f 67 72 61 6d 20 6d 61 | 79 20 73 74 69 6c 6c 20 |ogram ma|y still |
|000006e0| 62 65 20 75 73 69 6e 67 | 20 69 74 73 20 6f 6c 64 |be using| its old|
|000006f0| 20 76 61 6c 75 65 2e 0d | 0d 49 6e 20 41 70 70 6c | value..|.In Appl|
|00000700| 65 53 63 72 69 70 74 20 | 31 2e 31 2c 20 6c 69 73 |eScript |1.1, lis|
|00000710| 74 73 20 61 72 65 20 72 | 65 70 72 65 73 65 6e 74 |ts are r|epresent|
|00000720| 65 64 20 61 73 20 76 65 | 63 74 6f 72 73 2e 20 54 |ed as ve|ctors. T|
|00000730| 68 69 73 20 6d 65 61 6e | 73 20 74 68 61 74 20 65 |his mean|s that e|
|00000740| 6c 65 6d 65 6e 74 73 20 | 61 72 65 20 73 74 6f 72 |lements |are stor|
|00000750| 65 64 20 69 6e 20 63 6f | 6e 73 65 63 75 74 69 76 |ed in co|nsecutiv|
|00000760| 65 20 6c 6f 63 61 74 69 | 6f 6e 73 20 69 6e 20 6d |e locati|ons in m|
|00000770| 65 6d 6f 72 79 20 72 61 | 74 68 65 72 20 74 68 61 |emory ra|ther tha|
|00000780| 6e 20 6c 69 6e 6b 65 64 | 20 74 6f 67 65 74 68 65 |n linked| togethe|
|00000790| 72 2e 20 54 68 69 73 20 | 6d 61 6b 65 73 20 61 63 |r. This |makes ac|
|000007a0| 63 65 73 73 69 6e 67 20 | 65 6c 65 6d 65 6e 74 73 |cessing |elements|
|000007b0| 20 62 79 20 69 6e 64 65 | 78 20 66 61 73 74 20 28 | by inde|x fast (|
|000007c0| 63 6f 6e 73 74 61 6e 74 | 20 74 69 6d 65 20 2d 2d |constant| time --|
|000007d0| 20 69 74 20 64 6f 65 73 | 6e 27 74 20 6d 61 74 74 | it does|n't matt|
|000007e0| 65 72 20 61 62 6f 75 74 | 20 74 68 65 20 76 61 6c |er about| the val|
|000007f0| 75 65 20 6f 66 20 74 68 | 65 20 69 6e 64 65 78 29 |ue of th|e index)|
|00000800| 2c 20 62 75 74 20 6d 61 | 6b 65 73 20 63 6f 6e 63 |, but ma|kes conc|
|00000810| 61 74 65 6e 61 74 69 6f | 6e 20 67 65 6e 65 72 61 |atenatio|n genera|
|00000820| 74 65 20 6d 75 63 68 20 | 6d 6f 72 65 20 67 61 72 |te much |more gar|
|00000830| 62 61 67 65 2c 20 61 73 | 20 62 6f 74 68 20 68 61 |bage, as| both ha|
|00000840| 6c 76 65 73 20 6f 66 20 | 74 68 65 20 63 6f 6e 63 |lves of |the conc|
|00000850| 61 74 65 6e 61 74 65 20 | 6f 70 65 72 61 74 6f 72 |atenate |operator|
|00000860| 20 28 26 29 20 6d 75 73 | 74 20 62 65 20 63 6f 70 | (&) mus|t be cop|
|00000870| 69 65 64 2e 0d 0d 54 68 | 69 73 20 74 72 61 64 65 |ied...Th|is trade|
|00000880| 2d 6f 66 66 20 77 61 73 | 20 6d 61 64 65 20 62 65 |-off was| made be|
|00000890| 63 61 75 73 65 20 77 65 | 20 66 6f 75 6e 64 20 74 |cause we| found t|
|000008a0| 68 61 74 20 70 65 6f 70 | 6c 65 20 61 63 63 65 73 |hat peop|le acces|
|000008b0| 73 65 64 20 69 74 65 6d | 73 20 6f 66 20 6c 69 73 |sed item|s of lis|
|000008c0| 74 73 20 66 61 72 20 6d | 6f 72 65 20 6f 66 74 65 |ts far m|ore ofte|
|000008d0| 6e 20 74 68 61 6e 20 74 | 68 65 79 20 63 6f 6e 63 |n than t|hey conc|
|000008e0| 61 74 65 6e 61 74 65 64 | 2c 20 6f 72 20 6d 6f 72 |atenated|, or mor|
|000008f0| 65 20 70 72 65 63 69 73 | 65 6c 79 2c 20 74 68 61 |e precis|ely, tha|
|00000900| 74 20 74 68 69 73 20 62 | 61 6c 61 6e 63 65 20 6c |t this b|alance l|
|00000910| 65 61 64 20 74 6f 20 62 | 65 74 74 65 72 20 6f 76 |ead to b|etter ov|
|00000920| 65 72 61 6c 6c 20 70 65 | 72 66 6f 72 6d 61 6e 63 |erall pe|rformanc|
|00000930| 65 20 63 68 61 72 61 63 | 74 65 72 69 73 74 69 63 |e charac|teristic|
|00000940| 73 2e 20 48 6f 77 65 76 | 65 72 2c 20 66 6f 72 20 |s. Howev|er, for |
|00000950| 63 65 72 74 61 69 6e 20 | 73 63 72 69 70 74 73 2c |certain |scripts,|
|00000960| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 6c 69 | the pre|vious li|
|00000970| 73 74 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |st repre|sentatio|
|00000980| 6e 20 6d 61 79 20 68 61 | 76 65 20 62 65 65 6e 20 |n may ha|ve been |
|00000990| 6d 6f 72 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 |more app|ropriate|
|000009a0| 2c 20 74 68 65 72 65 66 | 6f 72 65 20 77 65 20 64 |, theref|ore we d|
|000009b0| 69 64 20 74 77 6f 20 74 | 68 69 6e 67 73 3a 20 57 |id two t|hings: W|
|000009c0| 65 20 61 6c 6c 6f 77 20 | 6c 69 6e 6b 65 64 20 6c |e allow |linked l|
|000009d0| 69 73 74 73 20 74 6f 20 | 62 65 20 65 78 70 6c 69 |ists to |be expli|
|000009e0| 63 69 74 6c 79 20 63 72 | 65 61 74 65 64 2c 20 61 |citly cr|eated, a|
|000009f0| 6e 64 20 77 65 20 61 6c | 6c 6f 77 20 69 6e 73 65 |nd we al|low inse|
|00000a00| 72 74 69 6f 6e 20 6f 70 | 65 72 61 74 69 6f 6e 73 |rtion op|erations|
|00000a10| 20 6f 6e 20 76 65 63 74 | 6f 72 73 2e 0d 0d 45 78 | on vect|ors...Ex|
|00000a20| 70 6c 69 63 69 74 20 4c | 69 6e 6b 65 64 20 4c 69 |plicit L|inked Li|
|00000a30| 73 74 73 20 0d 0d 41 70 | 70 6c 65 53 63 72 69 70 |sts ..Ap|pleScrip|
|00000a40| 74 20 31 2e 31 20 61 6c | 6c 6f 77 73 20 74 68 65 |t 1.1 al|lows the|
|00000a50| 20 6f 6c 64 2d 73 74 79 | 6c 65 20 28 6c 69 6e 6b | old-sty|le (link|
|00000a60| 65 64 29 20 6c 69 73 74 | 73 20 74 6f 20 62 65 20 |ed) list|s to be |
|00000a70| 63 72 65 61 74 65 64 20 | 62 79 20 75 73 69 6e 67 |created |by using|
|00000a80| 20 61 20 73 71 75 61 72 | 65 20 62 72 61 63 6b 65 | a squar|e bracke|
|00000a90| 74 20 6e 6f 74 61 74 69 | 6f 6e 2e 20 57 68 65 72 |t notati|on. Wher|
|00000aa0| 65 61 73 20 74 6f 20 70 | 75 74 20 76 61 72 69 61 |eas to p|ut varia|
|00000ab0| 62 6c 65 73 20 78 2c 20 | 79 20 61 6e 64 20 7a 20 |bles x, |y and z |
|00000ac0| 69 6e 74 6f 20 61 20 76 | 65 63 74 6f 72 2c 20 77 |into a v|ector, w|
|00000ad0| 65 20 73 61 79 3a 0d 0d | 7b 78 2c 20 79 2c 20 7a |e say:..|{x, y, z|
|00000ae0| 7d 0d 0d 77 65 20 63 61 | 6e 20 6e 6f 77 20 61 6c |}..we ca|n now al|
|00000af0| 73 6f 20 77 72 69 74 65 | 20 73 63 72 69 70 74 73 |so write| scripts|
|00000b00| 20 74 68 61 74 20 70 75 | 74 20 74 68 65 73 65 20 | that pu|t these |
|00000b10| 76 61 72 69 61 62 6c 65 | 73 20 69 6e 74 6f 20 61 |variable|s into a|
|00000b20| 20 6c 69 6e 6b 65 64 20 | 6c 69 73 74 20 76 69 61 | linked |list via|
|00000b30| 3a 0d 0d 5b 78 2c 20 79 | 2c 20 7a 5d 0d 0d 4e 6f |:..[x, y|, z]..No|
|00000b40| 74 65 2c 20 68 6f 77 65 | 76 65 72 2c 20 74 68 61 |te, howe|ver, tha|
|00000b50| 74 20 62 6f 74 68 20 6f | 66 20 74 68 65 73 65 20 |t both o|f these |
|00000b60| 70 72 69 6e 74 20 72 65 | 73 75 6c 74 73 20 6f 75 |print re|sults ou|
|00000b70| 74 20 77 69 74 68 20 62 | 72 61 63 65 73 2e 20 46 |t with b|races. F|
|00000b80| 75 72 74 68 65 72 6d 6f | 72 65 2c 20 61 73 6b 69 |urthermo|re, aski|
|00000b90| 6e 67 20 74 68 65 20 63 | 6c 61 73 73 20 6f 66 20 |ng the c|lass of |
|00000ba0| 65 69 74 68 65 72 20 6f | 66 20 74 68 65 73 65 20 |either o|f these |
|00000bb0| 74 77 6f 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |two repr|esentati|
|00000bc0| 6f 6e 73 20 77 69 6c 6c | 20 72 65 74 75 72 6e 20 |ons will| return |
|00000bd0| 74 68 65 20 63 6c 61 73 | 73 20 27 6c 69 73 74 27 |the clas|s 'list'|
|00000be0| 3a 0d 0d 63 6c 61 73 73 | 20 6f 66 20 7b 31 2c 20 |:..class| of {1, |
|00000bf0| 32 7d 20 2d 2d 3e 20 6c | 69 73 74 0d 63 6c 61 73 |2} --> l|ist.clas|
|00000c00| 73 20 6f 66 20 5b 31 2c | 20 32 5d 20 2d 2d 3e 20 |s of [1,| 2] --> |
|00000c10| 6c 69 73 74 0d 0d 49 66 | 20 74 68 65 20 74 77 6f |list..If| the two|
|00000c20| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 73 | represe|ntations|
|00000c30| 20 6e 65 65 64 20 74 6f | 20 62 65 20 64 69 73 74 | need to| be dist|
|00000c40| 69 6e 67 75 69 73 68 65 | 64 2c 20 74 68 65 20 27 |inguishe|d, the '|
|00000c50| 62 65 73 74 20 74 79 70 | 65 27 20 70 72 6f 70 65 |best typ|e' prope|
|00000c60| 72 74 79 20 6d 61 79 20 | 62 65 20 75 73 65 64 3a |rty may |be used:|
|00000c70| 0d 0d 62 65 73 74 20 74 | 79 70 65 20 6f 66 20 7b |..best t|ype of {|
|00000c80| 31 2c 20 32 7d 20 2d 2d | 3e 20 76 65 63 74 6f 72 |1, 2} --|> vector|
|00000c90| 0d 62 65 73 74 20 74 79 | 70 65 20 6f 66 20 5b 31 |.best ty|pe of [1|
|00000ca0| 2c 20 32 5d 20 2d 2d 3e | 20 6c 69 6e 6b 65 64 20 |, 2] -->| linked |
|00000cb0| 6c 69 73 74 0d 0d 46 6f | 72 20 74 68 65 20 63 6f |list..Fo|r the co|
|00000cc0| 6e 63 61 74 65 6e 61 74 | 69 6f 6e 20 6f 70 65 72 |ncatenat|ion oper|
|00000cd0| 61 74 6f 72 20 28 26 29 | 2c 20 74 68 65 20 72 65 |ator (&)|, the re|
|00000ce0| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |presenta|tion of |
|00000cf0| 74 68 65 20 72 65 73 75 | 6c 74 20 77 69 6c 6c 20 |the resu|lt will |
|00000d00| 62 65 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |be the s|ame as t|
|00000d10| 68 65 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |he repre|sentatio|
|00000d20| 6e 20 6f 66 20 74 68 65 | 20 6c 65 66 74 2d 68 61 |n of the| left-ha|
|00000d30| 6e 64 20 73 69 64 65 3a | 0d 0d 62 65 73 74 20 74 |nd side:|..best t|
|00000d40| 79 70 65 20 6f 66 20 28 | 7b 31 7d 20 26 20 5b 32 |ype of (|{1} & [2|
|00000d50| 5d 29 20 2d 2d 3e 20 76 | 65 63 74 6f 72 0d 62 65 |]) --> v|ector.be|
|00000d60| 73 74 20 74 79 70 65 20 | 6f 66 20 28 5b 31 5d 20 |st type |of ([1] |
|00000d70| 26 20 7b 32 7d 29 20 2d | 2d 3e 20 6c 69 6e 6b 65 |& {2}) -|-> linke|
|00000d80| 64 20 6c 69 73 74 0d 0d | 57 68 65 6e 20 41 70 70 |d list..|When App|
|00000d90| 6c 65 53 63 72 69 70 74 | 20 31 2e 31 20 72 65 61 |leScript| 1.1 rea|
|00000da0| 64 73 20 31 2e 30 20 73 | 63 72 69 70 74 20 66 69 |ds 1.0 s|cript fi|
|00000db0| 6c 65 73 2c 20 61 6c 6c | 20 6c 69 73 74 73 20 73 |les, all| lists s|
|00000dc0| 74 6f 72 65 64 20 69 6e | 20 70 65 72 73 69 73 74 |tored in| persist|
|00000dd0| 65 6e 74 20 70 72 6f 70 | 65 72 74 69 65 73 20 77 |ent prop|erties w|
|00000de0| 69 6c 6c 20 61 63 74 75 | 61 6c 6c 79 20 62 65 20 |ill actu|ally be |
|00000df0| 6c 69 6e 6b 65 64 20 6c | 69 73 74 73 2e 20 48 6f |linked l|ists. Ho|
|00000e00| 77 65 76 65 72 2c 20 74 | 68 65 20 64 69 73 74 69 |wever, t|he disti|
|00000e10| 6e 63 74 69 6f 6e 20 77 | 69 6c 6c 20 62 65 20 74 |nction w|ill be t|
|00000e20| 72 61 6e 73 70 61 72 65 | 6e 74 20 74 6f 20 74 68 |ranspare|nt to th|
|00000e30| 65 20 73 63 72 69 70 74 | 20 77 68 65 6e 20 72 75 |e script| when ru|
|00000e40| 6e 2e 20 0d 0d 4c 69 6e | 6b 65 64 20 6c 69 73 74 |n. ..Lin|ked list|
|00000e50| 73 20 61 72 65 20 61 20 | 76 65 72 79 20 67 6f 6f |s are a |very goo|
|00000e60| 64 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |d repres|entation|
|00000e70| 20 66 6f 72 20 72 65 63 | 75 72 73 69 76 65 20 70 | for rec|ursive p|
|00000e80| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 20 22 77 61 |rograms |that "wa|
|00000e90| 6c 6b 22 20 6c 69 73 74 | 73 2c 20 70 72 6f 63 65 |lk" list|s, proce|
|00000ea0| 73 73 69 6e 67 20 6f 6e | 65 20 69 74 65 6d 20 6f |ssing on|e item o|
|00000eb0| 6e 20 65 61 63 68 20 72 | 65 63 75 72 73 69 76 65 |n each r|ecursive|
|00000ec0| 20 73 74 65 70 2e 20 54 | 68 69 73 20 69 73 20 75 | step. T|his is u|
|00000ed0| 73 75 61 6c 6c 79 20 74 | 68 65 20 63 61 73 65 20 |sually t|he case |
|00000ee0| 77 68 65 6e 20 74 68 65 | 20 27 72 65 73 74 27 20 |when the| 'rest' |
|00000ef0| 70 72 6f 70 65 72 74 79 | 20 69 73 20 62 65 69 6e |property| is bein|
|00000f00| 67 20 75 73 65 64 2e 20 | 46 6f 72 20 65 78 61 6d |g used. |For exam|
|00000f10| 70 6c 65 2c 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ple, the| followi|
|00000f20| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 20 63 6f 6d 70 |ng funct|ion comp|
|00000f30| 75 74 65 73 20 74 68 65 | 20 73 75 6d 20 6f 66 20 |utes the| sum of |
|00000f40| 74 68 65 20 73 71 75 61 | 72 65 73 20 6f 66 20 74 |the squa|res of t|
|00000f50| 68 65 20 69 74 65 6d 73 | 20 69 6e 20 61 20 6c 69 |he items| in a li|
|00000f60| 73 74 3a 0d 0d 6f 6e 20 | 53 75 6d 4f 66 53 71 75 |st:..on |SumOfSqu|
|00000f70| 61 72 65 73 28 74 68 65 | 4c 69 73 74 29 0d 09 69 |ares(the|List)..i|
|00000f80| 66 20 74 68 65 4c 69 73 | 74 20 3d 20 7b 7d 20 74 |f theLis|t = {} t|
|00000f90| 68 65 6e 0d 09 09 72 65 | 74 75 72 6e 20 30 0d 09 |hen...re|turn 0..|
|00000fa0| 65 6c 73 65 0d 09 09 73 | 65 74 20 65 6c 65 6d 65 |else...s|et eleme|
|00000fb0| 6e 74 20 74 6f 20 66 69 | 72 73 74 20 69 74 65 6d |nt to fi|rst item|
|00000fc0| 20 6f 66 20 74 68 65 4c | 69 73 74 0d 09 09 72 65 | of theL|ist...re|
|00000fd0| 74 75 72 6e 20 28 65 6c | 65 6d 65 6e 74 20 2a 20 |turn (el|ement * |
|00000fe0| 65 6c 65 6d 65 6e 74 29 | 20 2b 20 53 75 6d 4f 66 |element)| + SumOf|
|00000ff0| 53 71 75 61 72 65 73 28 | 72 65 73 74 20 6f 66 20 |Squares(|rest of |
|00001000| 74 68 65 4c 69 73 74 29 | 0d 09 65 6e 64 20 69 66 |theList)|..end if|
|00001010| 0d 65 6e 64 20 53 75 6d | 4f 66 53 71 75 61 72 65 |.end Sum|OfSquare|
|00001020| 73 0d 0d 57 68 65 6e 20 | 74 68 69 73 20 66 75 6e |s..When |this fun|
|00001030| 63 74 69 6f 6e 20 69 73 | 20 61 70 70 6c 69 65 64 |ction is| applied|
|00001040| 20 74 6f 20 61 20 6c 69 | 6e 6b 65 64 20 6c 69 73 | to a li|nked lis|
|00001050| 74 20 6f 72 20 76 65 63 | 74 6f 72 2c 20 74 68 65 |t or vec|tor, the|
|00001060| 20 73 61 6d 65 20 61 6e | 73 77 65 72 20 72 65 73 | same an|swer res|
|00001070| 75 6c 74 73 20 28 6e 6f | 74 65 20 74 68 61 74 20 |ults (no|te that |
|00001080| 74 68 65 20 65 6d 70 74 | 79 20 6c 69 73 74 20 65 |the empt|y list e|
|00001090| 71 75 61 6c 73 20 74 68 | 65 20 65 6d 70 74 79 20 |quals th|e empty |
|000010a0| 76 65 63 74 6f 72 2c 20 | 73 6f 20 74 68 65 20 65 |vector, |so the e|
|000010b0| 71 75 61 6c 69 74 79 20 | 74 65 73 74 20 77 6f 72 |quality |test wor|
|000010c0| 6b 73 20 69 6e 20 65 69 | 74 68 65 72 20 63 61 73 |ks in ei|ther cas|
|000010d0| 65 29 3a 0d 0d 53 75 6d | 4f 66 53 71 75 61 72 65 |e):..Sum|OfSquare|
|000010e0| 73 28 5b 31 2c 20 32 2c | 20 33 5d 29 20 2d 2d 3e |s([1, 2,| 3]) -->|
|000010f0| 20 31 34 0d 53 75 6d 4f | 66 53 71 75 61 72 65 73 | 14.SumO|fSquares|
|00001100| 28 7b 31 2c 20 32 2c 20 | 33 7d 29 20 2d 2d 3e 20 |({1, 2, |3}) --> |
|00001110| 31 34 0d 0d 68 6f 77 65 | 76 65 72 20 74 68 65 20 |14..howe|ver the |
|00001120| 6c 69 6e 6b 65 64 20 6c | 69 73 74 20 63 61 73 65 |linked l|ist case|
|00001130| 20 64 6f 65 73 6e 27 74 | 20 67 65 6e 65 72 61 74 | doesn't| generat|
|00001140| 65 20 61 6e 79 20 67 61 | 72 62 61 67 65 2e 20 54 |e any ga|rbage. T|
|00001150| 68 65 20 76 65 63 74 6f | 72 20 63 61 73 65 20 6d |he vecto|r case m|
|00001160| 75 73 74 20 67 65 6e 65 | 72 61 74 65 20 61 20 6e |ust gene|rate a n|
|00001170| 65 77 20 73 75 62 2d 6c | 69 73 74 20 66 6f 72 20 |ew sub-l|ist for |
|00001180| 65 61 63 68 20 74 69 6d | 65 20 74 68 65 20 27 72 |each tim|e the 'r|
|00001190| 65 73 74 27 20 70 72 6f | 70 65 72 74 79 20 69 73 |est' pro|perty is|
|000011a0| 20 61 63 63 65 73 73 65 | 64 2e 0d 0d 56 65 63 74 | accesse|d...Vect|
|000011b0| 6f 72 20 49 6e 73 65 72 | 74 69 6f 6e 0d 0d 54 68 |or Inser|tion..Th|
|000011c0| 65 20 73 65 63 6f 6e 64 | 20 74 68 69 6e 67 20 77 |e second| thing w|
|000011d0| 65 20 64 69 64 20 74 6f | 20 65 6e 68 61 6e 63 65 |e did to| enhance|
|000011e0| 20 74 68 65 20 70 65 72 | 66 6f 72 6d 61 6e 63 65 | the per|formance|
|000011f0| 20 77 68 65 6e 20 75 73 | 69 6e 67 20 76 65 63 74 | when us|ing vect|
|00001200| 6f 72 73 20 69 73 20 74 | 6f 20 61 6c 6c 6f 77 20 |ors is t|o allow |
|00001210| 69 74 65 6d 73 20 74 6f | 20 62 65 20 69 6e 73 65 |items to| be inse|
|00001220| 72 74 65 64 20 61 74 20 | 74 68 65 20 62 65 67 69 |rted at |the begi|
|00001230| 6e 6e 69 6e 67 20 6f 72 | 20 65 6e 64 20 6f 66 20 |nning or| end of |
|00001240| 61 20 76 65 63 74 6f 72 | 2e 20 45 2e 67 2e 3a 0d |a vector|. E.g.:.|
|00001250| 0d 73 65 74 20 6d 79 4c | 69 73 74 20 74 6f 20 7b |.set myL|ist to {|
|00001260| 31 2c 20 32 7d 0d 73 65 | 74 20 65 6e 64 20 6f 66 |1, 2}.se|t end of|
|00001270| 20 6d 79 4c 69 73 74 20 | 74 6f 20 33 0d 6d 79 4c | myList |to 3.myL|
|00001280| 69 73 74 20 2d 2d 3e 20 | 7b 31 2c 20 32 2c 20 33 |ist --> |{1, 2, 3|
|00001290| 7d 0d 0d 73 65 74 20 62 | 65 67 69 6e 6e 69 6e 67 |}..set b|eginning|
|000012a0| 20 6f 66 20 6d 79 4c 69 | 73 74 20 74 6f 20 30 0d | of myLi|st to 0.|
|000012b0| 6d 79 4c 69 73 74 20 2d | 2d 3e 20 7b 30 2c 20 31 |myList -|-> {0, 1|
|000012c0| 2c 20 32 2c 20 33 7d 0d | 0d 55 6e 6c 69 6b 65 20 |, 2, 3}.|.Unlike |
|000012d0| 63 6f 6e 63 61 74 65 6e | 61 74 69 6f 6e 2c 20 73 |concaten|ation, s|
|000012e0| 65 74 74 69 6e 67 20 74 | 68 65 20 62 65 67 69 6e |etting t|he begin|
|000012f0| 6e 69 6e 67 20 6f 72 20 | 65 6e 64 20 6f 66 20 61 |ning or |end of a|
|00001300| 20 6c 69 73 74 20 61 63 | 74 75 61 6c 6c 79 20 63 | list ac|tually c|
|00001310| 68 61 6e 67 65 73 20 74 | 68 65 20 6c 69 73 74 2e |hanges t|he list.|
|00001320| 20 4e 6f 74 65 20 74 68 | 61 74 20 69 74 27 73 20 | Note th|at it's |
|00001330| 6e 6f 74 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |not the |variable|
|00001340| 20 74 68 61 74 27 73 20 | 62 65 69 6e 67 20 63 68 | that's |being ch|
|00001350| 61 6e 67 65 64 2c 20 69 | 74 27 73 20 74 68 65 20 |anged, i|t's the |
|00001360| 6c 69 73 74 20 69 74 73 | 65 6c 66 2e 20 54 68 61 |list its|elf. Tha|
|00001370| 74 20 6d 65 61 6e 73 20 | 74 68 61 74 20 69 66 20 |t means |that if |
|00001380| 74 77 6f 20 76 61 72 69 | 61 62 6c 65 73 20 61 72 |two vari|ables ar|
|00001390| 65 20 72 65 66 65 72 72 | 69 6e 67 20 74 6f 20 74 |e referr|ing to t|
|000013a0| 68 65 20 73 61 6d 65 20 | 6c 69 73 74 2c 20 61 6e |he same |list, an|
|000013b0| 64 20 61 6e 20 69 74 65 | 6d 20 69 73 20 69 6e 73 |d an ite|m is ins|
|000013c0| 65 72 74 65 64 20 69 6e | 74 6f 20 74 68 65 20 6c |erted in|to the l|
|000013d0| 69 73 74 2c 20 62 6f 74 | 68 20 76 61 72 69 61 62 |ist, bot|h variab|
|000013e0| 6c 65 73 20 77 69 6c 6c | 20 72 65 66 65 72 20 74 |les will| refer t|
|000013f0| 6f 20 74 68 65 20 63 68 | 61 6e 67 65 64 20 6c 69 |o the ch|anged li|
|00001400| 73 74 3a 0d 0d 73 65 74 | 20 78 20 74 6f 20 7b 31 |st:..set| x to {1|
|00001410| 2c 20 32 7d 0d 73 65 74 | 20 79 20 74 6f 20 78 20 |, 2}.set| y to x |
|00001420| 2d 2d 20 79 20 72 65 66 | 65 72 73 20 74 6f 20 74 |-- y ref|ers to t|
|00001430| 68 65 20 73 61 6d 65 20 | 76 61 6c 75 65 20 74 68 |he same |value th|
|00001440| 61 74 20 78 20 72 65 66 | 65 72 73 20 74 6f 0d 73 |at x ref|ers to.s|
|00001450| 65 74 20 65 6e 64 20 6f | 66 20 78 20 74 6f 20 33 |et end o|f x to 3|
|00001460| 0d 78 20 2d 2d 3e 20 7b | 31 2c 20 32 2c 20 33 7d |.x --> {|1, 2, 3}|
|00001470| 0d 0d 79 20 2d 2d 3e 20 | 7b 31 2c 20 32 2c 20 33 |..y --> |{1, 2, 3|
|00001480| 7d 0d 0d 48 6f 77 65 76 | 65 72 2c 20 64 65 73 70 |}..Howev|er, desp|
|00001490| 69 74 65 20 74 68 65 20 | 22 64 65 73 74 72 75 63 |ite the |"destruc|
|000014a0| 74 69 76 65 22 20 6e 61 | 74 75 72 65 20 6f 66 20 |tive" na|ture of |
|000014b0| 69 6e 73 65 72 74 69 6f | 6e 2c 20 6f 66 74 65 6e |insertio|n, often|
|000014c0| 20 74 69 6d 65 73 20 77 | 65 27 72 65 20 6f 6e 6c | times w|e're onl|
|000014d0| 79 20 75 73 69 6e 67 20 | 6c 69 73 74 73 20 74 6f |y using |lists to|
|000014e0| 20 61 63 63 75 6d 75 6c | 61 74 65 20 72 65 73 75 | accumul|ate resu|
|000014f0| 6c 74 73 2c 20 61 6e 64 | 20 64 6f 6e 27 74 20 63 |lts, and| don't c|
|00001500| 61 72 65 20 74 68 61 74 | 20 76 61 72 69 61 62 6c |are that| variabl|
|00001510| 65 73 20 72 65 66 65 72 | 72 69 6e 67 20 74 6f 20 |es refer|ring to |
|00001520| 74 68 65 20 6c 69 73 74 | 20 77 69 6c 6c 20 62 65 |the list| will be|
|00001530| 20 6d 6f 64 69 66 69 65 | 64 20 28 70 72 65 73 75 | modifie|d (presu|
|00001540| 6d 61 62 6c 79 20 77 65 | 20 64 6f 6e 27 74 20 63 |mably we| don't c|
|00001550| 61 72 65 20 62 65 63 61 | 75 73 65 20 6f 6e 6c 79 |are beca|use only|
|00001560| 20 6f 6e 65 20 76 61 72 | 69 61 62 6c 65 20 69 73 | one var|iable is|
|00001570| 20 72 65 66 65 72 69 6e | 67 20 74 6f 20 74 68 61 | referin|g to tha|
|00001580| 74 20 6c 69 73 74 20 61 | 6e 79 77 61 79 29 2e 20 |t list a|nyway). |
|00001590| 49 6e 20 74 68 65 73 65 | 20 63 61 73 65 73 2c 20 |In these| cases, |
|000015a0| 77 65 20 63 61 6e 20 67 | 72 65 61 74 6c 79 20 69 |we can g|reatly i|
|000015b0| 6e 63 72 65 61 73 65 20 | 74 68 65 20 65 66 66 69 |ncrease |the effi|
|000015c0| 63 69 65 6e 63 79 20 6f | 66 20 6f 75 72 20 73 63 |ciency o|f our sc|
|000015d0| 72 69 70 74 73 20 62 79 | 20 69 6e 73 65 72 74 69 |ripts by| inserti|
|000015e0| 6e 67 20 69 74 65 6d 73 | 20 72 61 74 68 65 72 20 |ng items| rather |
|000015f0| 74 68 61 6e 20 63 6f 6e | 63 61 74 65 6e 61 74 69 |than con|catenati|
|00001600| 6e 67 20 74 68 65 6d 2c | 20 66 6f 72 6d 69 6e 67 |ng them,| forming|
|00001610| 20 6e 65 77 20 6c 69 73 | 74 73 20 61 6e 64 20 6c | new lis|ts and l|
|00001620| 65 61 76 69 6e 67 20 74 | 68 65 20 6f 6c 64 20 6f |eaving t|he old o|
|00001630| 6e 65 73 20 61 73 20 67 | 61 72 62 61 67 65 2e 20 |nes as g|arbage. |
|00001640| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 68 69 |For exam|ple, thi|
|00001650| 73 20 73 63 72 69 70 74 | 20 74 68 61 74 20 61 63 |s script| that ac|
|00001660| 63 75 6d 75 6c 61 74 65 | 73 20 74 68 65 20 73 71 |cumulate|s the sq|
|00001670| 75 61 72 65 73 20 6f 66 | 20 61 20 6c 69 73 74 20 |uares of| a list |
|00001680| 6f 66 20 6e 75 6d 62 65 | 72 73 3a 0d 0d 73 65 74 |of numbe|rs:..set|
|00001690| 20 6d 79 4e 75 6d 62 65 | 72 73 20 74 6f 20 7b 31 | myNumbe|rs to {1|
|000016a0| 2c 20 32 2c 20 33 7d 0d | 73 65 74 20 72 65 73 75 |, 2, 3}.|set resu|
|000016b0| 6c 74 4c 69 73 74 20 74 | 6f 20 7b 7d 0d 72 65 70 |ltList t|o {}.rep|
|000016c0| 65 61 74 20 77 69 74 68 | 20 69 20 69 6e 20 6d 79 |eat with| i in my|
|000016d0| 4e 75 6d 62 65 72 73 0d | 09 73 65 74 20 72 65 73 |Numbers.|.set res|
|000016e0| 75 6c 74 4c 69 73 74 20 | 74 6f 20 72 65 73 75 6c |ultList |to resul|
|000016f0| 74 4c 69 73 74 20 26 20 | 7b 69 20 2a 20 69 7d 0d |tList & |{i * i}.|
|00001700| 65 6e 64 20 72 65 70 65 | 61 74 0d 72 65 73 75 6c |end repe|at.resul|
|00001710| 74 4c 69 73 74 20 2d 2d | 3e 20 7b 31 2c 20 34 2c |tList --|> {1, 4,|
|00001720| 20 39 7d 0d 0d 63 61 6e | 20 62 65 20 6d 61 64 65 | 9}..can| be made|
|00001730| 20 6d 6f 72 65 20 65 66 | 66 69 63 69 65 6e 74 20 | more ef|ficient |
|00001740| 28 66 61 73 74 65 72 20 | 61 6e 64 20 67 65 6e 65 |(faster |and gene|
|00001750| 72 61 74 65 20 6c 65 73 | 73 20 67 61 72 62 61 67 |rate les|s garbag|
|00001760| 65 29 20 69 66 20 72 65 | 77 72 69 74 74 65 6e 20 |e) if re|written |
|00001770| 61 73 3a 0d 0d 73 65 74 | 20 6d 79 4e 75 6d 62 65 |as:..set| myNumbe|
|00001780| 72 73 20 74 6f 20 7b 31 | 2c 20 32 2c 20 33 7d 0d |rs to {1|, 2, 3}.|
|00001790| 73 65 74 20 72 65 73 75 | 6c 74 4c 69 73 74 20 74 |set resu|ltList t|
|000017a0| 6f 20 7b 7d 0d 72 65 70 | 65 61 74 20 77 69 74 68 |o {}.rep|eat with|
|000017b0| 20 69 20 69 6e 20 6d 79 | 4e 75 6d 62 65 72 73 0d | i in my|Numbers.|
|000017c0| 09 73 65 74 20 65 6e 64 | 20 6f 66 20 72 65 73 75 |.set end| of resu|
|000017d0| 6c 74 4c 69 73 74 20 74 | 6f 20 69 20 2a 20 69 0d |ltList t|o i * i.|
|000017e0| 65 6e 64 20 72 65 70 65 | 61 74 0d 72 65 73 75 6c |end repe|at.resul|
|000017f0| 74 4c 69 73 74 20 2d 2d | 3e 20 7b 31 2c 20 34 2c |tList --|> {1, 4,|
|00001800| 20 39 7d 0d 0d 46 6f 72 | 20 74 68 65 20 72 65 63 | 9}..For| the rec|
|00001810| 6f 72 64 2c 20 73 65 74 | 74 69 6e 67 20 74 68 65 |ord, set|ting the|
|00001820| 20 65 6e 64 20 6f 66 20 | 61 20 6c 69 73 74 20 69 | end of |a list i|
|00001830| 73 20 62 79 20 66 61 72 | 20 74 68 65 20 6d 6f 73 |s by far| the mos|
|00001840| 74 20 65 66 66 69 63 69 | 65 6e 74 2c 20 61 6e 64 |t effici|ent, and|
|00001850| 20 73 65 74 74 69 6e 67 | 20 74 68 65 20 62 65 67 | setting| the beg|
|00001860| 69 6e 6e 69 6e 67 20 69 | 73 20 73 65 63 6f 6e 64 |inning i|s second|
|00001870| 20 28 62 65 63 61 75 73 | 65 20 61 6c 6c 20 74 68 | (becaus|e all th|
|00001880| 65 20 69 74 65 6d 73 20 | 6d 75 73 74 20 62 65 20 |e items |must be |
|00001890| 73 6c 69 64 20 64 6f 77 | 6e 20 74 6f 20 6d 61 6b |slid dow|n to mak|
|000018a0| 65 20 72 6f 6f 6d 20 66 | 6f 72 20 61 20 6e 65 77 |e room f|or a new|
|000018b0| 20 66 69 72 73 74 20 69 | 74 65 6d 29 2e 0d 0d 4d | first i|tem)...M|
|000018c0| 69 6e 6f 72 20 64 69 66 | 66 65 72 65 6e 63 65 20 |inor dif|ference |
|000018d0| 69 6e 20 43 6f 6e 63 61 | 74 65 6e 61 74 69 6f 6e |in Conca|tenation|
|000018e0| 0d 0d 54 68 65 72 65 20 | 69 73 20 6f 6e 65 20 6d |..There |is one m|
|000018f0| 69 6e 6f 72 20 64 69 66 | 66 65 72 65 6e 63 65 20 |inor dif|ference |
|00001900| 62 65 74 77 65 65 6e 20 | 74 68 65 20 77 61 79 20 |between |the way |
|00001910| 63 6f 6e 63 61 74 65 6e | 61 74 69 6f 6e 20 77 6f |concaten|ation wo|
|00001920| 72 6b 73 20 6f 6e 20 6c | 69 6e 6b 65 64 20 6c 69 |rks on l|inked li|
|00001930| 73 74 73 20 61 6e 64 20 | 76 65 63 74 6f 72 73 20 |sts and |vectors |
|00001940| 28 61 6e 64 20 63 6f 6e | 73 65 71 75 65 6e 74 6c |(and con|sequentl|
|00001950| 79 20 62 65 74 77 65 65 | 6e 20 41 70 70 6c 65 53 |y betwee|n AppleS|
|00001960| 63 72 69 70 74 20 31 2e | 30 20 61 6e 64 20 41 70 |cript 1.|0 and Ap|
|00001970| 70 6c 65 53 63 72 69 70 | 74 20 31 2e 31 20 75 73 |pleScrip|t 1.1 us|
|00001980| 69 6e 67 20 74 68 65 20 | 63 75 72 6c 79 20 62 72 |ing the |curly br|
|00001990| 61 63 65 20 6e 6f 74 61 | 74 69 6f 6e 20 66 6f 72 |ace nota|tion for|
|000019a0| 20 6c 69 73 74 73 29 2e | 20 57 68 65 6e 20 6c 69 | lists).| When li|
|000019b0| 6e 6b 65 64 20 6c 69 73 | 74 73 20 61 72 65 20 63 |nked lis|ts are c|
|000019c0| 6f 6e 63 61 74 65 6e 61 | 74 65 64 2c 20 6f 6e 6c |oncatena|ted, onl|
|000019d0| 79 20 74 68 65 20 6c 65 | 66 74 2d 68 61 6e 64 20 |y the le|ft-hand |
|000019e0| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 63 6f 70 69 |argument| is copi|
|000019f0| 65 64 2c 20 74 68 65 20 | 72 69 67 68 74 2d 68 61 |ed, the |right-ha|
|00001a00| 6e 64 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 73 |nd argum|ent is s|
|00001a10| 68 61 72 65 64 2e 20 46 | 6f 72 20 65 78 61 6d 70 |hared. F|or examp|
|00001a20| 6c 65 3a 0d 0d 73 65 74 | 20 78 20 74 6f 20 5b 31 |le:..set| x to [1|
|00001a30| 2c 20 32 2c 20 33 5d 0d | 73 65 74 20 79 20 74 6f |, 2, 3].|set y to|
|00001a40| 20 5b 34 2c 20 35 2c 20 | 36 5d 0d 73 65 74 20 7a | [4, 5, |6].set z|
|00001a50| 20 74 6f 20 78 20 26 20 | 79 0d 73 65 74 20 69 74 | to x & |y.set it|
|00001a60| 65 6d 20 32 20 6f 66 20 | 79 20 74 6f 20 39 39 39 |em 2 of |y to 999|
|00001a70| 0d 7a 20 2d 2d 3e 20 7b | 31 2c 20 32 2c 20 33 2c |.z --> {|1, 2, 3,|
|00001a80| 20 34 2c 20 39 39 39 2c | 20 36 7d 0d 0d 48 65 72 | 4, 999,| 6}..Her|
|00001a90| 65 2c 20 78 20 61 6e 64 | 20 79 20 61 72 65 20 74 |e, x and| y are t|
|00001aa0| 77 6f 20 6c 69 6e 6b 65 | 64 20 6c 69 73 74 73 20 |wo linke|d lists |
|00001ab0| 28 6f 72 20 41 70 70 6c | 65 53 63 72 69 70 74 20 |(or Appl|eScript |
|00001ac0| 31 2e 30 20 6c 69 73 74 | 73 29 20 74 68 61 74 20 |1.0 list|s) that |
|00001ad0| 61 72 65 20 63 6f 6e 63 | 61 74 65 6e 61 74 65 64 |are conc|atenated|
|00001ae0| 2e 20 53 69 6e 63 65 20 | 79 20 61 70 70 65 61 72 |. Since |y appear|
|00001af0| 73 20 6f 6e 20 74 68 65 | 20 72 69 67 68 74 2d 68 |s on the| right-h|
|00001b00| 61 6e 64 20 73 69 64 65 | 20 6f 66 20 74 68 65 20 |and side| of the |
|00001b10| 63 6f 6e 63 61 74 65 6e | 61 74 65 20 6f 70 65 72 |concaten|ate oper|
|00001b20| 61 74 6f 72 20 28 26 29 | 2c 20 69 74 20 69 73 20 |ator (&)|, it is |
|00001b30| 73 68 61 72 65 64 20 62 | 65 74 77 65 65 6e 20 79 |shared b|etween y|
|00001b40| 20 61 6e 64 20 74 68 65 | 20 6c 61 73 74 20 74 68 | and the| last th|
|00001b50| 72 65 65 20 65 6c 65 6d | 65 6e 74 73 20 6f 66 20 |ree elem|ents of |
|00001b60| 7a 2e 20 54 68 65 6e 20 | 77 68 65 6e 20 79 20 69 |z. Then |when y i|
|00001b70| 73 20 75 70 64 61 74 65 | 64 2c 20 74 68 65 73 65 |s update|d, these|
|00001b80| 20 63 68 61 6e 67 65 73 | 20 61 72 65 20 72 65 66 | changes| are ref|
|00001b90| 6c 65 63 74 65 64 20 69 | 6e 20 7a 20 61 6c 73 6f |lected i|n z also|
|00001ba0| 2e 0d 0d 48 6f 77 65 76 | 65 72 2c 20 69 66 20 76 |...Howev|er, if v|
|00001bb0| 65 63 74 6f 72 73 20 61 | 72 65 20 75 73 65 64 2c |ectors a|re used,|
|00001bc0| 20 62 6f 74 68 20 78 20 | 61 6e 64 20 79 20 61 72 | both x |and y ar|
|00001bd0| 65 20 63 6f 70 69 65 64 | 20 74 6f 20 63 72 65 61 |e copied| to crea|
|00001be0| 74 65 20 7a 2c 20 61 6e | 64 20 75 70 64 61 74 69 |te z, an|d updati|
|00001bf0| 6e 67 20 79 20 64 6f 65 | 73 20 6e 6f 74 20 63 68 |ng y doe|s not ch|
|00001c00| 61 6e 67 65 20 7a 3a 0d | 0d 73 65 74 20 78 20 74 |ange z:.|.set x t|
|00001c10| 6f 20 7b 31 2c 20 32 2c | 20 33 7d 0d 73 65 74 20 |o {1, 2,| 3}.set |
|00001c20| 79 20 74 6f 20 7b 34 2c | 20 35 2c 20 36 7d 0d 73 |y to {4,| 5, 6}.s|
|00001c30| 65 74 20 7a 20 74 6f 20 | 78 20 26 20 79 0d 73 65 |et z to |x & y.se|
|00001c40| 74 20 69 74 65 6d 20 32 | 20 6f 66 20 79 20 74 6f |t item 2| of y to|
|00001c50| 20 39 39 39 0d 7a 20 2d | 2d 3e 20 7b 31 2c 20 32 | 999.z -|-> {1, 2|
|00001c60| 2c 20 33 2c 20 34 2c 20 | 35 2c 20 36 7d 0d 0d 41 |, 3, 4, |5, 6}..A|
|00001c70| 6c 74 68 6f 75 67 68 20 | 74 68 69 73 20 64 6f 65 |lthough |this doe|
|00001c80| 73 20 63 6f 6e 73 74 69 | 74 75 74 65 20 61 20 63 |s consti|tute a c|
|00001c90| 68 61 6e 67 65 20 69 6e | 20 74 68 65 20 64 65 66 |hange in| the def|
|00001ca0| 61 75 6c 74 20 62 65 68 | 61 76 69 6f 72 20 66 72 |ault beh|avior fr|
|00001cb0| 6f 6d 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 31 |om Apple|Script 1|
|00001cc0| 2e 30 20 74 6f 20 31 2e | 31 2c 20 77 65 20 62 65 |.0 to 1.|1, we be|
|00001cd0| 6c 69 65 76 65 20 74 68 | 65 20 6e 65 77 20 62 65 |lieve th|e new be|
|00001ce0| 68 61 76 69 6f 72 20 69 | 73 20 6d 6f 72 65 20 69 |havior i|s more i|
|00001cf0| 6e 74 75 69 74 69 76 65 | 2c 20 61 6e 64 20 74 68 |ntuitive|, and th|
|00001d00| 65 20 6f 6c 64 20 62 65 | 68 61 76 69 6f 72 20 63 |e old be|havior c|
|00001d10| 61 6e 20 62 65 20 70 72 | 65 73 65 72 76 65 64 20 |an be pr|eserved |
|00001d20| 75 73 69 6e 67 20 74 68 | 65 20 73 71 75 61 72 65 |using th|e square|
|00001d30| 20 62 72 61 63 6b 65 74 | 20 73 79 6e 74 61 78 2e | bracket| syntax.|
|00001d40| 0d 0d 0d 0d 45 61 73 69 | 65 72 20 45 72 72 6f 72 |....Easi|er Error|
|00001d50| 20 48 61 6e 64 6c 69 6e | 67 0d 0d 49 6e 20 41 70 | Handlin|g..In Ap|
|00001d60| 70 6c 65 53 63 72 69 70 | 74 20 31 2e 31 20 77 65 |pleScrip|t 1.1 we|
|00001d70| 20 73 74 72 65 61 6d 6c | 69 6e 65 64 20 74 68 65 | streaml|ined the|
|00001d80| 20 77 61 79 20 79 6f 75 | 20 63 61 6e 20 63 61 74 | way you| can cat|
|00001d90| 63 68 20 61 6e 64 20 68 | 61 6e 64 6c 65 20 69 6e |ch and h|andle in|
|00001da0| 64 69 76 69 64 75 61 6c | 20 65 72 72 6f 72 73 2e |dividual| errors.|
|00001db0| 20 4f 66 74 65 6e 20 74 | 69 6d 65 73 20 69 74 20 | Often t|imes it |
|00001dc0| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 66 6f 72 |is neces|sary for|
|00001dd0| 20 61 20 73 63 72 69 70 | 74 20 74 6f 20 68 61 6e | a scrip|t to han|
|00001de0| 64 6c 65 20 61 20 70 61 | 72 74 69 63 75 6c 61 72 |dle a pa|rticular|
|00001df0| 20 65 72 72 6f 72 2c 20 | 62 75 74 20 6e 6f 74 20 | error, |but not |
|00001e00| 6f 74 68 65 72 73 2e 20 | 49 6e 20 41 70 70 6c 65 |others. |In Apple|
|00001e10| 53 63 72 69 70 74 20 31 | 2e 30 20 79 6f 75 20 68 |Script 1|.0 you h|
|00001e20| 61 64 20 74 6f 20 6d 61 | 6b 65 20 73 75 72 65 20 |ad to ma|ke sure |
|00001e30| 74 68 61 74 20 74 68 65 | 20 65 72 72 6f 72 73 20 |that the| errors |
|00001e40| 79 6f 75 20 64 69 64 6e | 27 74 20 77 61 6e 74 20 |you didn|'t want |
|00001e50| 74 6f 20 68 61 6e 64 6c | 65 20 77 65 72 65 20 22 |to handl|e were "|
|00001e60| 72 65 72 61 69 73 65 64 | 22 20 77 69 74 68 20 61 |reraised|" with a|
|00001e70| 6e 6f 74 68 65 72 20 63 | 61 6c 6c 20 74 6f 20 65 |nother c|all to e|
|00001e80| 72 72 6f 72 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |rror. Fo|r exampl|
|00001e90| 65 3a 0d 0d 74 72 79 0d | 09 6f 70 65 6e 20 66 6f |e:..try.|.open fo|
|00001ea0| 72 20 61 63 63 65 73 73 | 20 66 69 6c 65 20 22 53 |r access| file "S|
|00001eb0| 65 71 75 65 6e 74 69 61 | 6c 69 73 6d 3a 50 68 6f |equentia|lism:Pho|
|00001ec0| 6e 65 4e 75 6d 62 65 72 | 73 22 20 77 69 74 68 20 |neNumber|s" with |
|00001ed0| 77 72 69 74 65 20 70 65 | 72 6d 69 73 73 69 6f 6e |write pe|rmission|
|00001ee0| 0d 6f 6e 20 65 72 72 6f | 72 20 6d 73 67 20 6e 75 |.on erro|r msg nu|
|00001ef0| 6d 62 65 72 20 6e 20 66 | 72 6f 6d 20 66 20 74 6f |mber n f|rom f to|
|00001f00| 20 74 20 70 61 72 74 69 | 61 6c 20 72 65 73 75 6c | t parti|al resul|
|00001f10| 74 20 70 0d 09 69 66 20 | 6e 20 3d 20 2d 34 39 20 |t p..if |n = -49 |
|00001f20| 74 68 65 6e 0d 09 09 64 | 69 73 70 6c 61 79 20 64 |then...d|isplay d|
|00001f30| 69 61 6c 6f 67 20 22 49 | 27 6d 20 73 6f 72 72 79 |ialog "I|'m sorry|
|00001f40| 20 62 75 74 20 74 68 65 | 20 66 69 6c 65 20 69 73 | but the| file is|
|00001f50| 20 61 6c 72 65 61 64 79 | 20 6f 70 65 6e 65 64 2e | already| opened.|
|00001f60| 22 0d 09 65 6c 73 65 0d | 09 09 65 72 72 6f 72 20 |"..else.|..error |
|00001f70| 6d 73 67 20 6e 75 6d 62 | 65 72 20 6e 20 66 72 6f |msg numb|er n fro|
|00001f80| 6d 20 66 20 74 6f 20 74 | 20 70 61 72 74 69 61 6c |m f to t| partial|
|00001f90| 20 72 65 73 75 6c 74 20 | 70 0d 09 65 6e 64 20 69 | result |p..end i|
|00001fa0| 66 0d 65 6e 64 20 74 72 | 79 0d 0d 54 68 69 73 20 |f.end tr|y..This |
|00001fb0| 73 63 72 69 70 74 20 74 | 72 79 73 20 74 6f 20 6f |script t|rys to o|
|00001fc0| 70 65 6e 20 61 20 66 69 | 6c 65 20 77 69 74 68 20 |pen a fi|le with |
|00001fd0| 77 72 69 74 65 20 70 65 | 72 6d 69 73 73 69 6f 6e |write pe|rmission|
|00001fe0| 2c 20 62 75 74 20 69 66 | 20 69 74 20 69 73 20 61 |, but if| it is a|
|00001ff0| 6c 72 65 61 64 79 20 6f | 70 65 6e 65 64 20 69 74 |lready o|pened it|
|00002000| 20 64 69 73 70 6c 61 79 | 73 20 61 20 64 69 61 6c | display|s a dial|
|00002010| 6f 67 20 69 6e 73 74 65 | 61 64 2e 20 49 6e 20 41 |og inste|ad. In A|
|00002020| 70 70 6c 65 53 63 72 69 | 70 74 20 31 2e 31 20 79 |ppleScri|pt 1.1 y|
|00002030| 6f 75 20 63 61 6e 20 6e | 6f 77 20 77 72 69 74 65 |ou can n|ow write|
|00002040| 20 74 68 69 73 20 6d 6f | 72 65 20 63 6f 6e 63 69 | this mo|re conci|
|00002050| 73 65 6c 79 20 61 73 3a | 0d 0d 74 72 79 0d 09 6f |sely as:|..try..o|
|00002060| 70 65 6e 20 66 6f 72 20 | 61 63 63 65 73 73 20 66 |pen for |access f|
|00002070| 69 6c 65 20 22 53 65 71 | 75 65 6e 74 69 61 6c 69 |ile "Seq|uentiali|
|00002080| 73 6d 3a 50 68 6f 6e 65 | 4e 75 6d 62 65 72 73 22 |sm:Phone|Numbers"|
|00002090| 20 77 69 74 68 20 77 72 | 69 74 65 20 70 65 72 6d | with wr|ite perm|
|000020a0| 69 73 73 69 6f 6e 0d 6f | 6e 20 65 72 72 6f 72 20 |ission.o|n error |
|000020b0| 6e 75 6d 62 65 72 20 2d | 34 39 0d 09 64 69 73 70 |number -|49..disp|
|000020c0| 6c 61 79 20 64 69 61 6c | 6f 67 20 22 49 27 6d 20 |lay dial|og "I'm |
|000020d0| 73 6f 72 72 79 20 62 75 | 74 20 74 68 65 20 66 69 |sorry bu|t the fi|
|000020e0| 6c 65 20 69 73 20 61 6c | 72 65 61 64 79 20 6f 70 |le is al|ready op|
|000020f0| 65 6e 65 64 2e 22 0d 65 | 6e 64 20 74 72 79 0d 0d |ened.".e|nd try..|
|00002100| 4e 6f 74 65 20 74 68 61 | 74 20 77 65 20 64 69 64 |Note tha|t we did|
|00002110| 6e 27 74 20 6e 65 65 64 | 20 74 6f 20 6d 65 6e 74 |n't need| to ment|
|00002120| 69 6f 6e 20 61 6e 79 74 | 68 69 6e 67 20 61 62 6f |ion anyt|hing abo|
|00002130| 75 74 20 74 68 65 20 6d | 65 73 73 61 67 65 2c 20 |ut the m|essage, |
|00002140| 66 72 6f 6d 2c 20 74 6f | 2c 20 6f 72 20 70 61 72 |from, to|, or par|
|00002150| 74 69 61 6c 20 72 65 73 | 75 6c 74 20 70 61 72 61 |tial res|ult para|
|00002160| 6d 65 74 65 72 73 20 69 | 6e 20 6f 72 64 65 72 20 |meters i|n order |
|00002170| 74 6f 20 70 61 73 73 20 | 74 68 65 6d 20 61 6c 6f |to pass |them alo|
|00002180| 6e 67 2e 20 49 66 20 74 | 68 65 20 65 72 72 6f 72 |ng. If t|he error|
|00002190| 20 77 61 73 20 6e 6f 74 | 20 2d 34 39 20 74 68 69 | was not| -49 thi|
|000021a0| 73 20 65 72 72 6f 72 20 | 68 61 6e 64 6c 65 72 20 |s error |handler |
|000021b0| 77 69 6c 6c 20 6e 6f 74 | 20 63 61 74 63 68 20 74 |will not| catch t|
|000021c0| 68 65 20 65 72 72 6f 72 | 2c 20 61 6e 64 20 65 72 |he error|, and er|
|000021d0| 72 6f 72 20 68 61 6e 64 | 6c 65 72 73 20 69 6e 20 |ror hand|lers in |
|000021e0| 61 6e 20 6f 75 74 65 72 | 20 73 63 6f 70 65 20 77 |an outer| scope w|
|000021f0| 69 6c 6c 20 62 65 20 74 | 72 69 65 64 2e 0d 0d 59 |ill be t|ried...Y|
|00002200| 6f 75 20 63 61 6e 20 63 | 61 74 63 68 20 6d 75 6c |ou can c|atch mul|
|00002210| 74 69 70 6c 65 20 65 72 | 72 6f 72 73 20 62 79 20 |tiple er|rors by |
|00002220| 6e 65 73 74 69 6e 67 20 | 74 68 69 73 20 73 6f 72 |nesting |this sor|
|00002230| 74 20 6f 66 20 74 72 79 | 20 73 74 61 74 65 6d 65 |t of try| stateme|
|00002240| 6e 74 20 2d 2d 20 65 69 | 74 68 65 72 20 6c 65 78 |nt -- ei|ther lex|
|00002250| 69 63 61 6c 6c 79 20 6f | 72 20 77 69 74 68 69 6e |ically o|r within|
|00002260| 20 74 68 65 20 64 79 6e | 61 6d 69 63 20 73 63 6f | the dyn|amic sco|
|00002270| 70 65 20 6f 66 20 74 68 | 65 20 63 6f 6d 70 75 74 |pe of th|e comput|
|00002280| 61 74 69 6f 6e 2e 20 28 | 52 65 6d 65 6d 62 65 72 |ation. (|Remember|
|00002290| 20 74 68 61 74 20 6c 65 | 78 69 63 61 6c 20 73 63 | that le|xical sc|
|000022a0| 6f 70 65 20 6d 65 61 6e | 73 20 22 74 65 78 74 75 |ope mean|s "textu|
|000022b0| 61 6c 6c 79 20 63 6f 6e | 74 61 69 6e 65 64 20 69 |ally con|tained i|
|000022c0| 6e 20 61 6e 6f 74 68 65 | 72 20 62 6c 6f 63 6b 20 |n anothe|r block |
|000022d0| 73 74 72 75 63 74 75 72 | 65 2c 22 20 61 6e 64 20 |structur|e," and |
|000022e0| 64 79 6e 61 6d 69 63 20 | 73 63 6f 70 65 20 6d 65 |dynamic |scope me|
|000022f0| 61 6e 73 20 22 69 6e 20 | 74 68 65 20 63 61 6c 6c |ans "in |the call|
|00002300| 20 63 68 61 69 6e 2c 20 | 69 2e 65 2e 20 66 72 6f | chain, |i.e. fro|
|00002310| 6d 20 73 75 62 72 6f 75 | 74 69 6e 65 20 74 6f 20 |m subrou|tine to |
|00002320| 73 75 62 72 6f 75 74 69 | 6e 65 2e 22 29 20 48 65 |subrouti|ne.") He|
|00002330| 72 65 27 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 20 |re's an |example |
|00002340| 6f 66 20 6c 65 78 69 63 | 61 6c 20 6e 65 73 74 69 |of lexic|al nesti|
|00002350| 6e 67 3a 0d 0d 74 72 79 | 0d 09 74 72 79 0d 09 09 |ng:..try|..try...|
|00002360| 6f 70 65 6e 20 66 6f 72 | 20 61 63 63 65 73 73 20 |open for| access |
|00002370| 66 69 6c 65 20 22 53 65 | 71 75 65 6e 74 69 61 6c |file "Se|quential|
|00002380| 69 73 6d 3a 50 68 6f 6e | 65 4e 75 6d 62 65 72 73 |ism:Phon|eNumbers|
|00002390| 22 20 77 69 74 68 20 77 | 72 69 74 65 20 70 65 72 |" with w|rite per|
|000023a0| 6d 69 73 73 69 6f 6e 0d | 09 6f 6e 20 65 72 72 6f |mission.|.on erro|
|000023b0| 72 20 6e 75 6d 62 65 72 | 20 2d 34 39 0d 09 09 64 |r number| -49...d|
|000023c0| 69 73 70 6c 61 79 20 64 | 69 61 6c 6f 67 20 22 49 |isplay d|ialog "I|
|000023d0| 27 6d 20 73 6f 72 72 79 | 20 62 75 74 20 74 68 65 |'m sorry| but the|
|000023e0| 20 66 69 6c 65 20 69 73 | 20 61 6c 72 65 61 64 79 | file is| already|
|000023f0| 20 6f 70 65 6e 65 64 2e | 22 0d 09 65 6e 64 20 74 | opened.|"..end t|
|00002400| 72 79 0d 6f 6e 20 65 72 | 72 6f 72 20 6e 75 6d 62 |ry.on er|ror numb|
|00002410| 65 72 20 2d 33 35 0d 09 | 64 69 73 70 6c 61 79 20 |er -35..|display |
|00002420| 64 69 61 6c 6f 67 20 22 | 49 27 6d 20 73 6f 72 72 |dialog "|I'm sorr|
|00002430| 79 20 62 75 74 20 74 68 | 65 20 66 6f 6c 64 65 72 |y but th|e folder|
|00002440| 20 69 73 20 6d 69 73 73 | 69 6e 67 2e 22 0d 65 6e | is miss|ing.".en|
|00002450| 64 20 74 72 79 0d 0d 48 | 65 72 65 27 73 20 61 6e |d try..H|ere's an|
|00002460| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 6e 65 73 74 | example| of nest|
|00002470| 65 64 20 65 72 72 6f 72 | 20 68 61 6e 64 6c 65 72 |ed error| handler|
|00002480| 73 20 69 6e 20 74 68 65 | 20 64 79 6e 61 6d 69 63 |s in the| dynamic|
|00002490| 20 73 63 6f 70 65 20 28 | 69 2e 65 2e 20 65 72 72 | scope (|i.e. err|
|000024a0| 6f 72 73 20 61 72 65 20 | 63 61 75 67 68 74 20 65 |ors are |caught e|
|000024b0| 76 65 6e 20 69 66 20 74 | 68 65 79 20 61 72 65 20 |ven if t|hey are |
|000024c0| 72 61 69 73 65 64 20 69 | 6e 20 73 75 62 72 6f 75 |raised i|n subrou|
|000024d0| 74 69 6e 65 20 63 61 6c | 6c 73 29 3a 0d 0d 6f 6e |tine cal|ls):..on|
|000024e0| 20 4f 70 65 6e 50 68 6f | 6e 65 4e 75 6d 62 65 72 | OpenPho|neNumber|
|000024f0| 73 28 29 0d 09 74 72 79 | 0d 09 09 6f 70 65 6e 20 |s()..try|...open |
|00002500| 66 6f 72 20 61 63 63 65 | 73 73 20 66 69 6c 65 20 |for acce|ss file |
|00002510| 22 53 65 71 75 65 6e 74 | 69 61 6c 69 73 6d 3a 50 |"Sequent|ialism:P|
|00002520| 68 6f 6e 65 4e 75 6d 62 | 65 72 73 22 20 77 69 74 |honeNumb|ers" wit|
|00002530| 68 20 77 72 69 74 65 20 | 70 65 72 6d 69 73 73 69 |h write |permissi|
|00002540| 6f 6e 0d 09 6f 6e 20 65 | 72 72 6f 72 20 6e 75 6d |on..on e|rror num|
|00002550| 62 65 72 20 2d 34 39 0d | 09 09 64 69 73 70 6c 61 |ber -49.|..displa|
|00002560| 79 20 64 69 61 6c 6f 67 | 20 22 49 27 6d 20 73 6f |y dialog| "I'm so|
|00002570| 72 72 79 20 62 75 74 20 | 74 68 65 20 66 69 6c 65 |rry but |the file|
|00002580| 20 69 73 20 61 6c 72 65 | 61 64 79 20 6f 70 65 6e | is alre|ady open|
|00002590| 65 64 2e 22 0d 09 65 6e | 64 20 74 72 79 0d 65 6e |ed."..en|d try.en|
|000025a0| 64 20 4f 70 65 6e 50 68 | 6f 6e 65 4e 75 6d 62 65 |d OpenPh|oneNumbe|
|000025b0| 72 73 0d 0d 74 72 79 0d | 09 4f 70 65 6e 50 68 6f |rs..try.|.OpenPho|
|000025c0| 6e 65 4e 75 6d 62 65 72 | 73 28 29 0d 6f 6e 20 65 |neNumber|s().on e|
|000025d0| 72 72 6f 72 20 6e 75 6d | 62 65 72 20 2d 33 35 0d |rror num|ber -35.|
|000025e0| 09 64 69 73 70 6c 61 79 | 20 64 69 61 6c 6f 67 20 |.display| dialog |
|000025f0| 22 49 27 6d 20 73 6f 72 | 72 79 20 62 75 74 20 74 |"I'm sor|ry but t|
|00002600| 68 65 20 66 6f 6c 64 65 | 72 20 69 73 20 6d 69 73 |he folde|r is mis|
|00002610| 73 69 6e 67 2e 22 0d 65 | 6e 64 20 74 72 79 0d 0d |sing.".e|nd try..|
|00002620| 4f 6e 65 20 64 72 61 77 | 62 61 63 6b 20 77 69 74 |One draw|back wit|
|00002630| 68 20 74 68 69 73 20 73 | 63 68 65 6d 65 20 69 73 |h this s|cheme is|
|00002640| 20 74 68 61 74 20 74 68 | 65 20 65 72 72 6f 72 20 | that th|e error |
|00002650| 6e 75 6d 62 65 72 73 20 | 6d 75 73 74 20 62 65 20 |numbers |must be |
|00002660| 6c 69 74 65 72 61 6c 20 | 63 6f 6e 73 74 61 6e 74 |literal |constant|
|00002670| 73 20 69 6e 20 74 68 65 | 20 65 72 72 6f 72 20 68 |s in the| error h|
|00002680| 61 6e 64 6c 65 72 20 70 | 61 72 61 6d 65 74 65 72 |andler p|arameter|
|00002690| 20 6c 69 73 74 2e 20 59 | 6f 75 20 63 61 6e 27 74 | list. Y|ou can't|
|000026a0| 20 64 65 66 69 6e 65 20 | 67 6c 6f 62 61 6c 20 76 | define |global v|
|000026b0| 61 72 69 61 62 6c 65 20 | 6f 72 20 70 72 6f 70 65 |ariable |or prope|
|000026c0| 72 74 79 20 6e 61 6d 65 | 73 20 66 6f 72 20 74 68 |rty name|s for th|
|000026d0| 65 73 65 20 62 65 63 61 | 75 73 65 20 74 68 65 79 |ese beca|use they|
|000026e0| 20 6d 75 73 74 20 62 65 | 20 6b 6e 6f 77 6e 20 77 | must be| known w|
|000026f0| 68 65 6e 20 74 68 65 20 | 73 63 72 69 70 74 20 69 |hen the |script i|
|00002700| 73 20 63 6f 6d 70 69 6c | 65 64 2e 20 0d 0d a5 20 |s compil|ed. ... |
|00002710| 48 6f 77 20 63 61 6e 20 | 79 6f 75 20 6b 6e 6f 77 |How can |you know|
|00002720| 20 74 68 65 20 76 61 6c | 75 65 73 20 6f 66 20 74 | the val|ues of t|
|00002730| 68 65 73 65 20 69 6d 70 | 6f 72 74 61 6e 74 20 65 |hese imp|ortant e|
|00002740| 72 72 6f 72 20 6e 75 6d | 62 65 72 73 3f 20 4f 6e |rror num|bers? On|
|00002750| 65 20 77 61 79 20 69 73 | 20 74 6f 20 6c 6f 6f 6b |e way is| to look|
|00002760| 20 74 68 65 6d 20 75 70 | 20 69 6e 20 61 20 4d 61 | them up| in a Ma|
|00002770| 63 69 6e 74 6f 73 68 20 | 72 65 66 65 72 65 6e 63 |cintosh |referenc|
|00002780| 65 20 74 68 61 74 20 64 | 65 73 63 72 69 62 65 73 |e that d|escribes|
|00002790| 20 77 68 61 74 20 65 72 | 72 6f 72 73 20 63 61 6e | what er|rors can|
|000027a0| 20 72 65 73 75 6c 74 20 | 66 72 6f 6d 20 73 70 65 | result |from spe|
|000027b0| 63 69 66 69 63 20 6f 70 | 65 72 61 74 69 6f 6e 73 |cific op|erations|
|000027c0| 20 28 73 63 72 69 70 74 | 20 65 72 72 6f 72 20 6e | (script| error n|
|000027d0| 75 6d 62 65 72 73 20 61 | 72 65 20 74 68 65 20 73 |umbers a|re the s|
|000027e0| 61 6d 65 20 61 73 20 72 | 65 67 75 6c 61 72 20 73 |ame as r|egular s|
|000027f0| 79 73 74 65 6d 20 65 72 | 72 6f 72 20 6e 75 6d 62 |ystem er|ror numb|
|00002800| 65 72 73 29 2e 20 50 65 | 72 68 61 70 73 20 61 20 |ers). Pe|rhaps a |
|00002810| 62 65 74 74 65 72 20 77 | 61 79 20 69 73 20 74 6f |better w|ay is to|
|00002820| 20 73 69 6d 70 6c 79 20 | 74 72 79 20 74 68 65 20 | simply |try the |
|00002830| 6f 70 65 72 61 74 69 6f | 6e 20 74 68 61 74 20 6d |operatio|n that m|
|00002840| 61 79 20 72 61 69 73 65 | 20 74 68 65 20 65 72 72 |ay raise| the err|
|00002850| 6f 72 20 69 6e 20 73 75 | 63 68 20 61 20 77 61 79 |or in su|ch a way|
|00002860| 20 74 68 61 74 20 61 63 | 74 75 61 6c 6c 79 20 64 | that ac|tually d|
|00002870| 6f 65 73 20 72 61 69 73 | 65 20 74 68 65 20 65 72 |oes rais|e the er|
|00002880| 72 6f 72 2c 20 61 6e 64 | 20 63 61 74 63 68 20 61 |ror, and| catch a|
|00002890| 6e 64 20 72 65 74 75 72 | 6e 20 74 68 65 20 65 72 |nd retur|n the er|
|000028a0| 72 6f 72 20 6e 75 6d 62 | 65 72 20 77 69 74 68 20 |ror numb|er with |
|000028b0| 61 20 67 65 6e 65 72 69 | 63 20 65 72 72 6f 72 20 |a generi|c error |
|000028c0| 68 61 6e 64 6c 65 72 3a | 0d 0d 74 72 79 0d 09 6f |handler:|..try..o|
|000028d0| 70 65 6e 20 66 6f 72 20 | 61 63 63 65 73 73 20 66 |pen for |access f|
|000028e0| 69 6c 65 20 22 53 65 71 | 75 65 6e 74 69 61 6c 69 |ile "Seq|uentiali|
|000028f0| 73 6d 3a 50 68 6f 6e 65 | 4e 75 6d 62 65 72 73 22 |sm:Phone|Numbers"|
|00002900| 20 77 69 74 68 20 77 72 | 69 74 65 20 70 65 72 6d | with wr|ite perm|
|00002910| 69 73 73 69 6f 6e 0d 6f | 6e 20 65 72 72 6f 72 20 |ission.o|n error |
|00002920| 6e 75 6d 62 65 72 20 6e | 0d 09 6e 0d 65 6e 64 20 |number n|..n.end |
|00002930| 74 72 79 0d 2d 2d 3e 20 | 2d 34 39 0d 0d 46 72 6f |try.--> |-49..Fro|
|00002940| 6d 20 74 68 65 72 65 20 | 79 6f 75 20 63 61 6e 20 |m there |you can |
|00002950| 74 68 65 6e 20 72 65 70 | 6c 61 63 65 20 6e 20 69 |then rep|lace n i|
|00002960| 6e 20 74 68 65 20 65 72 | 72 6f 72 20 68 61 6e 64 |n the er|ror hand|
|00002970| 6c 65 72 20 70 61 72 61 | 6d 65 74 65 72 20 6c 69 |ler para|meter li|
|00002980| 73 74 20 77 69 74 68 20 | 74 68 65 20 2d 34 39 20 |st with |the -49 |
|00002990| 64 69 72 65 63 74 6c 79 | 2c 20 61 6e 64 20 72 65 |directly|, and re|
|000029a0| 70 6c 61 63 65 20 6e 20 | 69 6e 20 74 68 65 20 62 |place n |in the b|
|000029b0| 6f 64 79 20 6f 66 20 74 | 68 65 20 65 72 72 6f 72 |ody of t|he error|
|000029c0| 20 68 61 6e 64 6c 65 72 | 20 77 69 74 68 20 74 68 | handler| with th|
|000029d0| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 65 72 |e approp|riate er|
|000029e0| 72 6f 72 20 68 61 6e 64 | 6c 69 6e 67 20 6f 70 65 |ror hand|ling ope|
|000029f0| 72 61 74 69 6f 6e 73 2e | 0d 0d 0d 0d 42 6c 6f 63 |rations.|....Bloc|
|00002a00| 6b 20 43 6f 6d 6d 65 6e | 74 73 0d 0d 41 70 70 6c |k Commen|ts..Appl|
|00002a10| 65 53 63 72 69 70 74 20 | 69 73 20 6e 6f 77 20 73 |eScript |is now s|
|00002a20| 74 72 69 63 74 65 72 20 | 61 62 6f 75 74 20 77 68 |tricter |about wh|
|00002a30| 61 74 27 73 20 61 63 63 | 65 70 74 65 64 20 77 69 |at's acc|epted wi|
|00002a40| 74 68 69 6e 20 62 6c 6f | 63 6b 20 63 6f 6d 6d 65 |thin blo|ck comme|
|00002a50| 6e 74 73 2c 20 27 28 2a | 20 2e 2e 2e 20 2a 29 27 |nts, '(*| ... *)'|
|00002a60| 2e 20 54 68 65 20 72 65 | 61 73 6f 6e 20 66 6f 72 |. The re|ason for|
|00002a70| 20 74 68 69 73 20 69 73 | 20 74 68 61 74 20 62 6c | this is| that bl|
|00002a80| 6f 63 6b 20 63 6f 6d 6d | 65 6e 74 73 20 61 72 65 |ock comm|ents are|
|00002a90| 20 69 6e 74 65 6e 64 65 | 64 20 74 6f 20 61 6c 6c | intende|d to all|
|00002aa0| 6f 77 20 75 73 65 72 73 | 20 74 6f 20 63 6f 6d 6d |ow users| to comm|
|00002ab0| 65 6e 74 20 6f 75 74 20 | 73 63 72 69 70 74 73 20 |ent out |scripts |
|00002ac0| 2d 2d 20 73 63 72 69 70 | 74 73 20 74 68 61 74 20 |-- scrip|ts that |
|00002ad0| 6d 61 79 20 63 6f 6e 74 | 61 69 6e 20 6f 74 68 65 |may cont|ain othe|
|00002ae0| 72 20 63 6f 6d 6d 65 6e | 74 73 2e 20 48 65 72 65 |r commen|ts. Here|
|00002af0| 27 73 20 73 6f 6d 65 20 | 65 78 61 6d 70 6c 65 73 |'s some |examples|
|00002b00| 20 6f 66 20 74 68 65 20 | 64 69 66 66 65 72 65 6e | of the |differen|
|00002b10| 63 65 73 2e 20 0d 0d 49 | 6e 20 41 70 70 6c 65 53 |ces. ..I|n AppleS|
|00002b20| 63 72 69 70 74 20 31 2e | 30 2c 20 69 74 20 77 61 |cript 1.|0, it wa|
|00002b30| 73 20 6c 65 67 61 6c 20 | 74 6f 20 70 75 74 20 74 |s legal |to put t|
|00002b40| 68 69 6e 67 73 20 74 68 | 61 74 20 6c 6f 6f 6b 65 |hings th|at looke|
|00002b50| 64 20 6c 69 6b 65 20 62 | 6c 6f 63 6b 20 63 6f 6d |d like b|lock com|
|00002b60| 6d 65 6e 74 20 64 65 6c | 69 6d 69 74 65 72 73 20 |ment del|imiters |
|00002b70| 77 69 74 68 69 6e 20 61 | 20 6c 69 6e 65 20 63 6f |within a| line co|
|00002b80| 6d 6d 65 6e 74 2e 20 54 | 68 69 73 20 69 73 20 73 |mment. T|his is s|
|00002b90| 74 69 6c 6c 20 74 72 75 | 65 20 69 6e 20 41 70 70 |till tru|e in App|
|00002ba0| 6c 65 53 63 72 69 70 74 | 20 31 2e 31 3a 0d 0d 2d |leScript| 1.1:..-|
|00002bb0| 2d 20 74 68 69 73 20 6c | 6f 6f 6b 73 20 6c 69 6b |- this l|ooks lik|
|00002bc0| 65 20 74 68 65 20 65 6e | 64 20 6f 66 20 61 20 62 |e the en|d of a b|
|00002bd0| 6c 6f 63 6b 20 63 6f 6d | 6d 65 6e 74 20 2a 29 2c |lock com|ment *),|
|00002be0| 20 62 75 74 20 69 74 27 | 73 20 6e 6f 74 0d 0d 2d | but it'|s not..-|
|00002bf0| 2d 20 74 68 69 73 20 6c | 6f 6f 6b 73 20 6c 69 6b |- this l|ooks lik|
|00002c00| 65 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |e the be|ginning |
|00002c10| 6f 66 20 61 20 62 6c 6f | 63 6b 20 63 6f 6d 6d 65 |of a blo|ck comme|
|00002c20| 6e 74 20 28 2a 2c 20 62 | 75 74 20 69 74 27 73 20 |nt (*, b|ut it's |
|00002c30| 6e 6f 74 0d 0d 2d 2d 20 | 74 68 69 73 20 6c 6f 6f |not..-- |this loo|
|00002c40| 6b 73 20 6c 69 6b 65 20 | 69 74 20 63 6f 6e 74 61 |ks like |it conta|
|00002c50| 69 6e 73 20 61 20 62 6c | 6f 63 6b 20 63 6f 6d 6d |ins a bl|ock comm|
|00002c60| 65 6e 74 20 28 2a 20 62 | 75 74 20 69 74 20 64 6f |ent (* b|ut it do|
|00002c70| 65 73 6e 27 74 20 2a 29 | 0d 0d 54 68 65 73 65 20 |esn't *)|..These |
|00002c80| 61 72 65 20 6c 65 67 61 | 6c 20 62 65 63 61 75 73 |are lega|l becaus|
|00002c90| 65 20 74 68 65 20 41 70 | 70 6c 65 53 63 72 69 70 |e the Ap|pleScrip|
|00002ca0| 74 20 70 61 72 73 65 72 | 20 69 67 6e 6f 72 65 73 |t parser| ignores|
|00002cb0| 20 65 76 65 72 79 74 68 | 69 6e 67 20 75 70 20 74 | everyth|ing up t|
|00002cc0| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|00002cd0| 20 6c 69 6e 65 20 77 68 | 65 6e 20 69 74 20 73 65 | line wh|en it se|
|00002ce0| 65 73 20 61 20 6c 69 6e | 65 20 63 6f 6d 6d 65 6e |es a lin|e commen|
|00002cf0| 74 20 64 65 6c 69 6d 69 | 74 65 72 2e 20 48 6f 77 |t delimi|ter. How|
|00002d00| 65 76 65 72 2c 20 69 6e | 20 41 70 70 6c 65 53 63 |ever, in| AppleSc|
|00002d10| 72 69 70 74 20 31 2e 30 | 2c 20 74 68 69 73 20 77 |ript 1.0|, this w|
|00002d20| 61 73 20 6e 6f 74 20 74 | 72 75 65 20 69 66 20 79 |as not t|rue if y|
|00002d30| 6f 75 20 77 65 72 65 20 | 69 6e 20 61 20 62 6c 6f |ou were |in a blo|
|00002d40| 63 6b 20 63 6f 6d 6d 65 | 6e 74 3a 0d 0d 28 2a 20 |ck comme|nt:..(* |
|00002d50| 6e 6f 77 20 77 65 20 77 | 72 61 70 20 73 6f 6d 65 |now we w|rap some|
|00002d60| 20 63 6f 64 65 20 77 69 | 74 68 20 61 20 62 6c 6f | code wi|th a blo|
|00002d70| 63 6b 20 63 6f 6d 6d 65 | 6e 74 0d 2e 2e 2e 0d 2d |ck comme|nt.....-|
|00002d80| 2d 20 74 68 69 73 20 6c | 6f 6f 6b 73 20 6c 69 6b |- this l|ooks lik|
|00002d90| 65 20 74 68 65 20 65 6e | 64 20 6f 66 20 61 20 62 |e the en|d of a b|
|00002da0| 6c 6f 63 6b 20 63 6f 6d | 6d 65 6e 74 20 2a 29 2c |lock com|ment *),|
|00002db0| 20 62 75 74 20 69 74 27 | 73 20 6e 6f 74 0d 2e 2e | but it'|s not...|
|00002dc0| 2e 0d 62 75 74 20 74 68 | 69 73 20 63 61 75 73 65 |..but th|is cause|
|00002dd0| 73 20 70 72 6f 62 6c 65 | 6d 73 20 69 6e 20 31 2e |s proble|ms in 1.|
|00002de0| 30 20 2a 29 0d 0d 49 6e | 20 41 70 70 6c 65 53 63 |0 *)..In| AppleSc|
|00002df0| 72 69 70 74 20 31 2e 30 | 20 74 68 65 20 27 2a 29 |ript 1.0| the '*)|
|00002e00| 27 20 69 6e 20 74 68 65 | 20 6c 69 6e 65 20 63 6f |' in the| line co|
|00002e10| 6d 6d 65 6e 74 20 77 6f | 75 6c 64 20 74 65 72 6d |mment wo|uld term|
|00002e20| 69 6e 61 74 65 20 74 68 | 65 20 27 28 2a 27 20 62 |inate th|e '(*' b|
|00002e30| 6c 6f 63 6b 20 63 6f 6d | 6d 65 6e 74 20 6f 6e 20 |lock com|ment on |
|00002e40| 74 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 2e 20 |the firs|t line. |
|00002e50| 54 68 69 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 68 |This no |longer h|
|00002e60| 61 70 70 65 6e 73 20 69 | 6e 20 41 70 70 6c 65 53 |appens i|n AppleS|
|00002e70| 63 72 69 70 74 20 31 2e | 31 2e 20 0d 0d 41 20 73 |cript 1.|1. ..A s|
|00002e80| 69 6d 69 6c 61 72 20 73 | 69 74 75 61 74 69 6f 6e |imilar s|ituation|
|00002e90| 20 77 6f 75 6c 64 20 6f | 63 63 75 72 20 69 6e 20 | would o|ccur in |
|00002ea0| 41 70 70 6c 65 53 63 72 | 69 70 74 20 31 2e 30 20 |AppleScr|ipt 1.0 |
|00002eb0| 77 69 74 68 20 72 65 67 | 61 72 64 20 74 6f 20 73 |with reg|ard to s|
|00002ec0| 74 72 69 6e 67 73 20 61 | 6e 64 20 69 64 65 6e 74 |trings a|nd ident|
|00002ed0| 69 66 69 65 72 73 20 74 | 68 61 74 20 63 6f 6e 74 |ifiers t|hat cont|
|00002ee0| 61 69 6e 20 73 70 65 63 | 69 61 6c 20 63 68 61 72 |ain spec|ial char|
|00002ef0| 61 63 74 65 72 73 2e 20 | 41 20 6c 69 6e 65 20 63 |acters. |A line c|
|00002f00| 6f 75 6c 64 20 63 6f 6e | 74 61 69 6e 20 61 20 6c |ould con|tain a l|
|00002f10| 69 74 65 72 61 6c 20 73 | 74 72 69 6e 67 20 74 68 |iteral s|tring th|
|00002f20| 61 74 20 63 6f 6e 74 61 | 69 6e 20 77 68 61 74 20 |at conta|in what |
|00002f30| 6c 6f 6f 6b 65 64 20 6c | 69 6b 65 20 61 20 62 6c |looked l|ike a bl|
|00002f40| 6f 63 6b 20 63 6f 6d 6d | 65 6e 74 20 64 65 6c 69 |ock comm|ent deli|
|00002f50| 6d 69 74 65 72 3a 0d 0d | 73 65 74 20 78 20 74 6f |miter:..|set x to|
|00002f60| 20 22 74 68 69 73 20 69 | 73 20 6e 6f 74 20 61 6e | "this i|s not an|
|00002f70| 20 65 6e 64 20 62 6c 6f | 63 6b 20 63 6f 6d 6d 65 | end blo|ck comme|
|00002f80| 6e 74 20 64 65 6c 69 6d | 69 74 65 72 3a 20 2a 29 |nt delim|iter: *)|
|00002f90| 22 0d 0d 6f 72 20 61 6e | 20 69 64 65 6e 74 69 66 |"..or an| identif|
|00002fa0| 69 65 72 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |ier that| contain|
|00002fb0| 73 20 6d 6f 72 65 20 74 | 68 61 6e 20 61 6c 70 68 |s more t|han alph|
|00002fc0| 61 2d 6e 75 6d 65 72 69 | 63 20 63 68 61 72 61 63 |a-numeri|c charac|
|00002fd0| 74 65 72 73 20 28 72 65 | 6d 65 6d 62 65 72 20 74 |ters (re|member t|
|00002fe0| 68 61 74 20 77 65 20 63 | 61 6e 20 69 6e 63 6c 75 |hat we c|an inclu|
|00002ff0| 64 65 20 61 6e 79 20 63 | 68 61 72 61 63 74 65 72 |de any c|haracter|
|00003000| 73 20 69 6e 20 61 6e 20 | 69 64 65 6e 74 69 66 69 |s in an |identifi|
|00003010| 65 72 20 28 76 61 72 69 | 61 62 6c 65 20 6f 72 20 |er (vari|able or |
|00003020| 68 61 6e 64 6c 65 72 20 | 6e 61 6d 65 29 20 69 66 |handler |name) if|
|00003030| 20 69 74 20 69 73 20 69 | 6e 63 6c 6f 73 65 64 20 | it is i|nclosed |
|00003040| 69 6e 20 76 65 72 74 69 | 63 61 6c 20 62 61 72 73 |in verti|cal bars|
|00003050| 29 3a 0d 0d 73 65 74 20 | 7c 66 75 6e 6e 79 20 2a |):..set ||funny *|
|00003060| 29 20 76 61 72 69 61 62 | 6c 65 7c 20 74 6f 20 32 |) variab|le| to 2|
|00003070| 33 34 0d 0d 53 69 6d 69 | 6c 61 72 6c 79 2c 20 77 |34..Simi|larly, w|
|00003080| 68 65 6e 20 6e 65 73 74 | 65 64 20 69 6e 20 62 6c |hen nest|ed in bl|
|00003090| 6f 63 6b 20 63 6f 6d 6d | 65 6e 74 73 2c 20 74 68 |ock comm|ents, th|
|000030a0| 65 73 65 20 63 61 75 73 | 65 64 20 70 72 6f 62 6c |ese caus|ed probl|
|000030b0| 65 6d 73 20 69 6e 20 31 | 2e 30 3a 0d 0d 28 2a 20 |ems in 1|.0:..(* |
|000030c0| 6e 6f 77 20 77 65 20 77 | 72 61 70 20 73 6f 6d 65 |now we w|rap some|
|000030d0| 20 63 6f 64 65 20 77 69 | 74 68 20 61 20 62 6c 6f | code wi|th a blo|
|000030e0| 63 6b 20 63 6f 6d 6d 65 | 6e 74 0d 2e 2e 2e 0d 73 |ck comme|nt.....s|
|000030f0| 65 74 20 78 20 74 6f 20 | 22 74 68 69 73 20 69 73 |et x to |"this is|
|00003100| 20 6e 6f 74 20 61 6e 20 | 65 6e 64 20 62 6c 6f 63 | not an |end bloc|
|00003110| 6b 20 63 6f 6d 6d 65 6e | 74 20 64 65 6c 69 6d 69 |k commen|t delimi|
|00003120| 74 65 72 3a 20 2a 29 22 | 0d 73 65 74 20 7c 66 75 |ter: *)"|.set |fu|
|00003130| 6e 6e 79 20 2a 29 20 76 | 61 72 69 61 62 6c 65 7c |nny *) v|ariable||
|00003140| 20 74 6f 20 32 33 34 0d | 2e 2e 2e 0d 62 75 74 20 | to 234.|....but |
|00003150| 74 68 69 73 20 63 61 75 | 73 65 73 20 70 72 6f 62 |this cau|ses prob|
|00003160| 6c 65 6d 73 20 69 6e 20 | 31 2e 30 20 2a 29 0d 0d |lems in |1.0 *)..|
|00003170| 42 6f 74 68 20 6f 66 20 | 74 68 65 73 65 20 6e 6f |Both of |these no|
|00003180| 77 20 77 6f 72 6b 20 69 | 6e 20 41 70 70 6c 65 53 |w work i|n AppleS|
|00003190| 63 72 69 70 74 20 31 2e | 31 2e 0d 0d 54 68 65 20 |cript 1.|1...The |
|000031a0| 64 6f 77 6e 20 73 69 64 | 65 20 6f 66 20 74 68 69 |down sid|e of thi|
|000031b0| 73 20 63 68 61 6e 67 65 | 20 69 73 20 74 68 61 74 |s change| is that|
|000031c0| 20 69 74 20 6d 61 79 20 | 72 65 71 75 69 72 65 20 | it may |require |
|000031d0| 61 20 6c 69 74 74 6c 65 | 20 6d 6f 72 65 20 65 66 |a little| more ef|
|000031e0| 66 6f 72 74 20 74 6f 20 | 63 6f 6d 6d 65 6e 74 20 |fort to |comment |
|000031f0| 6f 75 74 20 70 61 72 74 | 69 61 6c 6c 79 20 77 72 |out part|ially wr|
|00003200| 69 74 74 65 6e 20 73 63 | 72 69 70 74 73 20 62 65 |itten sc|ripts be|
|00003210| 63 61 75 73 65 20 73 74 | 72 69 6e 67 20 71 75 6f |cause st|ring quo|
|00003220| 74 65 73 20 61 6e 64 20 | 76 65 72 74 69 63 61 6c |tes and |vertical|
|00003230| 20 62 61 72 73 20 6d 75 | 73 74 20 62 65 20 62 61 | bars mu|st be ba|
|00003240| 6c 61 6e 63 65 64 2e 20 | 49 6e 20 41 70 70 6c 65 |lanced. |In Apple|
|00003250| 53 63 72 69 70 74 20 31 | 2e 30 2c 20 69 74 20 77 |Script 1|.0, it w|
|00003260| 61 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 63 |as possi|ble to c|
|00003270| 6f 6d 6d 65 6e 74 20 6f | 75 74 20 73 63 72 69 70 |omment o|ut scrip|
|00003280| 74 73 20 74 68 61 74 20 | 77 65 72 65 6e 27 74 20 |ts that |weren't |
|00003290| 66 69 6e 69 73 68 65 64 | 20 62 65 69 6e 67 20 77 |finished| being w|
|000032a0| 72 69 74 74 65 6e 3a 0d | 0d 28 2a 0d 73 65 74 20 |ritten:.|.(*.set |
|000032b0| 64 65 63 6c 61 72 61 74 | 69 6f 6e 20 74 6f 20 22 |declarat|ion to "|
|000032c0| 46 6f 75 72 2d 73 63 6f | 72 65 20 61 6e 64 20 73 |Four-sco|re and s|
|000032d0| 65 76 65 6e 20 79 65 61 | 72 73 0d 2a 29 0d 0d 54 |even yea|rs.*)..T|
|000032e0| 6f 20 6d 61 6b 65 20 74 | 68 69 73 20 77 6f 72 6b |o make t|his work|
|000032f0| 20 69 6e 20 41 70 70 6c | 65 53 63 72 69 70 74 20 | in Appl|eScript |
|00003300| 31 2e 31 2c 20 79 6f 75 | 27 6c 6c 20 68 61 76 65 |1.1, you|'ll have|
|00003310| 20 74 6f 20 74 68 72 6f | 77 20 69 6e 20 61 20 63 | to thro|w in a c|
|00003320| 6c 6f 73 69 6e 67 20 71 | 75 6f 74 65 20 28 6f 72 |losing q|uote (or|
|00003330| 20 76 65 72 74 69 63 61 | 6c 20 62 61 72 20 61 73 | vertica|l bar as|
|00003340| 20 74 68 65 20 63 61 73 | 65 20 6d 61 79 20 62 65 | the cas|e may be|
|00003350| 29 2e 0d 0d 41 6e 64 20 | 72 65 6d 65 6d 62 65 72 |)...And |remember|
|00003360| 2c 20 62 6c 6f 63 6b 20 | 63 6f 6d 6d 65 6e 74 73 |, block |comments|
|00003370| 20 63 61 6e 20 6e 65 73 | 74 20 77 68 69 63 68 20 | can nes|t which |
|00003380| 6d 65 61 6e 73 20 79 6f | 75 20 63 61 6e 20 70 75 |means yo|u can pu|
|00003390| 74 20 74 68 65 6d 20 61 | 72 6f 75 6e 64 20 73 63 |t them a|round sc|
|000033a0| 72 69 70 74 73 20 74 68 | 61 74 20 61 6c 72 65 61 |ripts th|at alrea|
|000033b0| 64 79 20 63 6f 6e 74 61 | 69 6e 20 62 6c 6f 63 6b |dy conta|in block|
|000033c0| 20 63 6f 6d 6d 65 6e 74 | 73 20 61 73 20 77 65 6c | comment|s as wel|
|000033d0| 6c 20 61 73 20 6c 69 6e | 65 20 63 6f 6d 6d 65 6e |l as lin|e commen|
|000033e0| 74 73 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 3a |ts. For |example:|
|000033f0| 0d 0d 28 2a 20 46 6f 72 | 67 65 74 20 74 68 69 73 |..(* For|get this|
|00003400| 3a 0d 63 6c 6f 73 65 20 | 66 72 6f 6e 74 20 77 69 |:.close |front wi|
|00003410| 6e 64 6f 77 20 28 2a 20 | 6a 75 73 74 20 69 6e 20 |ndow (* |just in |
|00003420| 63 61 73 65 20 2a 29 0d | 2a 29 0d 0d 0d 54 69 6d |case *).|*)...Tim|
|00003430| 65 6f 75 74 73 0d 0d 49 | 6e 20 67 65 6e 65 72 61 |eouts..I|n genera|
|00003440| 6c 2c 20 74 69 6d 65 6f | 75 74 73 20 64 6f 6e 27 |l, timeo|uts don'|
|00003450| 74 20 77 6f 72 6b 20 69 | 66 20 79 6f 75 20 73 65 |t work i|f you se|
|00003460| 6e 64 20 74 6f 20 73 65 | 6c 66 20 28 74 68 65 20 |nd to se|lf (the |
|00003470| 63 75 72 72 65 6e 74 20 | 61 70 70 6c 69 63 61 74 |current |applicat|
|00003480| 69 6f 6e 29 2e 20 54 68 | 69 73 20 69 73 20 61 20 |ion). Th|is is a |
|00003490| 70 72 6f 70 65 72 74 79 | 20 6f 66 20 74 68 65 20 |property| of the |
|000034a0| 41 70 70 6c 65 45 76 65 | 6e 74 20 4d 61 6e 61 67 |AppleEve|nt Manag|
|000034b0| 65 72 2e 20 20 53 69 6e | 63 65 20 53 63 72 69 70 |er. Sin|ce Scrip|
|000034c0| 74 69 6e 67 20 41 64 64 | 69 74 69 6f 6e 20 63 6f |ting Add|ition co|
|000034d0| 6d 6d 61 6e 64 73 20 61 | 72 65 20 63 61 6c 6c 65 |mmands a|re calle|
|000034e0| 64 20 64 69 72 65 63 74 | 6c 79 2c 20 74 68 65 20 |d direct|ly, the |
|000034f0| 6d 65 73 73 61 67 65 20 | 69 73 20 73 65 6e 74 20 |message |is sent |
|00003500| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 61 |to the c|urrent a|
|00003510| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 49 66 20 79 |pplicati|on. If y|
|00003520| 6f 75 20 73 65 6e 64 20 | 74 68 65 20 53 63 72 69 |ou send |the Scri|
|00003530| 70 74 69 6e 67 20 41 64 | 64 69 74 69 6f 6e 20 63 |pting Ad|dition c|
|00003540| 6f 6d 6d 61 6e 64 20 74 | 6f 20 61 6e 6f 74 68 65 |ommand t|o anothe|
|00003550| 72 20 70 72 6f 63 65 73 | 73 20 28 69 2e 65 2e 2c |r proces|s (i.e.,|
|00003560| 20 77 69 74 68 69 6e 20 | 61 20 74 65 6c 6c 20 62 | within |a tell b|
|00003570| 6c 6f 63 6b 29 20 69 74 | 20 77 69 6c 6c 20 72 75 |lock) it| will ru|
|00003580| 6e 20 74 68 65 20 73 61 | 6d 65 20 61 6e 64 20 6f |n the sa|me and o|
|00003590| 62 65 79 20 74 69 6d 65 | 6f 75 74 73 2e 0d 00 00 |bey time|outs....|
|000035a0| 06 00 01 78 00 0d 01 21 | a9 3c 01 21 a7 d0 00 bd |...x...!|.<.!....|
|000035b0| 04 7a 01 21 a7 5c 00 00 | 00 01 00 0d 00 00 00 0e |.z.!.\..|........|
|000035c0| 00 01 00 0f 00 0c 00 a4 | 00 01 00 b7 00 00 00 b9 |........|........|
|000035d0| 00 03 00 d6 00 00 03 3f | 00 02 03 4b 00 00 07 20 |.......?|...K... |
|000035e0| 00 02 07 27 00 00 0a 18 | 00 03 0a 2d 00 00 0a d2 |...'....|...-....|
|000035f0| 00 05 0a dc 00 00 0b 2d | 00 05 0b 37 00 00 0b d5 |.......-|...7....|
|00003600| 00 04 0b da 00 00 0b dd | 00 05 0b e3 00 06 0b e5 |........|........|
|00003610| 00 05 0b ef 00 07 0b f5 | 00 05 0b fc 00 06 0b fe |........|........|
|00003620| 00 05 0c 08 00 07 0c 0e | 00 05 0c 0f 00 00 0c 6c |........|.......l|
|00003630| 00 05 0c 76 00 06 0c 78 | 00 05 0c 82 00 07 0c 8a |...v...x|........|
|00003640| 00 05 0c 95 00 06 0c 97 | 00 05 0c a1 00 07 0c ae |........|........|
|00003650| 00 05 0c af 00 00 0d 34 | 00 05 0d 3e 00 06 0d 40 |.......4|...>...@|
|00003660| 00 05 0d 4f 00 07 0d 57 | 00 05 0d 62 00 06 0d 64 |...O...W|...b...d|
|00003670| 00 05 0d 73 00 07 0d 80 | 00 00 0f 5f 00 06 0f 61 |...s....|..._...a|
|00003680| 00 05 0f 79 00 06 0f 7b | 00 05 0f 89 00 06 0f 8d |...y...{|........|
|00003690| 00 05 0f 90 00 06 0f 96 | 00 05 0f 9a 00 06 0f 9e |........|........|
|000036a0| 00 05 0f a1 00 06 0f a4 | 00 05 0f ad 00 06 0f af |........|........|
|000036b0| 00 05 0f b0 00 06 0f b5 | 00 05 0f bb 00 06 0f bd |........|........|
|000036c0| 00 05 0f c8 00 06 0f ce | 00 05 0f f7 00 06 0f f9 |........|........|
|000036d0| 00 05 10 04 00 06 10 07 | 00 05 10 08 00 06 10 0a |........|........|
|000036e0| 00 05 10 0b 00 06 10 0e | 00 05 10 1d 00 00 10 cf |........|........|
|000036f0| 00 05 10 e9 00 07 10 ed | 00 05 11 08 00 07 11 0c |........|........|
|00003700| 00 00 11 a6 00 03 11 b6 | 00 00 12 4b 00 06 12 4e |........|...K...N|
|00003710| 00 05 12 56 00 06 12 58 | 00 05 12 60 00 06 12 63 |...V...X|...`...c|
|00003720| 00 05 12 64 00 06 12 67 | 00 05 12 68 00 06 12 6a |...d...g|...h...j|
|00003730| 00 05 12 72 00 06 12 74 | 00 05 12 80 00 07 12 8b |...r...t|........|
|00003740| 00 05 12 8d 00 06 12 90 | 00 05 12 91 00 06 12 9a |........|........|
|00003750| 00 05 12 9b 00 06 12 9d | 00 05 12 a5 00 06 12 a7 |........|........|
|00003760| 00 05 12 b3 00 07 12 c1 | 00 00 13 09 00 02 13 10 |........|........|
|00003770| 00 00 13 ff 00 06 14 02 | 00 05 14 05 00 06 14 07 |........|........|
|00003780| 00 05 14 0f 00 06 14 12 | 00 05 14 15 00 06 14 17 |........|........|
|00003790| 00 05 14 1c 00 07 14 48 | 00 05 14 49 00 06 14 4c |.......H|...I...L|
|000037a0| 00 05 14 4d 00 06 14 50 | 00 05 14 51 00 06 14 53 |...M...P|...Q...S|
|000037b0| 00 05 14 56 00 06 14 58 | 00 05 14 5f 00 07 14 6a |...V...X|..._...j|
|000037c0| 00 05 14 70 00 07 14 7b | 00 05 14 7d 00 00 16 87 |...p...{|...}....|
|000037d0| 00 06 16 8a 00 05 16 95 | 00 06 16 97 00 05 16 a2 |........|........|
|000037e0| 00 06 16 a5 00 05 16 b1 | 00 06 16 b3 00 05 16 b7 |........|........|
|000037f0| 00 06 16 bd 00 05 16 be | 00 06 16 c2 00 05 16 c5 |........|........|
|00003800| 00 06 16 c7 00 05 16 d3 | 00 06 16 d6 00 05 16 e2 |........|........|
|00003810| 00 06 16 e4 00 05 16 fa | 00 06 16 fd 00 05 16 fe |........|........|
|00003820| 00 06 17 04 00 05 17 12 | 00 07 17 1d 00 00 17 6f |........|.......o|
|00003830| 00 06 17 72 00 05 17 7d | 00 06 17 7f 00 05 17 8a |...r...}|........|
|00003840| 00 06 17 8d 00 05 17 99 | 00 06 17 9b 00 05 17 9f |........|........|
|00003850| 00 06 17 a5 00 05 17 a6 | 00 06 17 aa 00 05 17 ad |........|........|
|00003860| 00 06 17 af 00 05 17 bb | 00 06 17 be 00 05 17 bf |........|........|
|00003870| 00 06 17 c2 00 05 17 c3 | 00 06 17 c5 00 05 17 d1 |........|........|
|00003880| 00 06 17 d3 00 05 17 da | 00 06 17 dd 00 05 17 de |........|........|
|00003890| 00 06 17 e4 00 05 17 f2 | 00 07 17 fd 00 05 17 fe |........|........|
|000038a0| 00 00 18 b9 00 03 18 da | 00 00 1a 1f 00 06 1a 22 |........|......."|
|000038b0| 00 05 1a 25 00 06 1a 27 | 00 05 1a 32 00 06 1a 35 |...%...'|...2...5|
|000038c0| 00 05 1a 38 00 06 1a 3a | 00 05 1a 45 00 06 1a 48 |...8...:|...E...H|
|000038d0| 00 05 1a 4b 00 06 1a 4d | 00 05 1a 54 00 06 1a 57 |...K...M|...T...W|
|000038e0| 00 05 1a 5f 00 06 1a 61 | 00 05 1a 64 00 06 1a 66 |..._...a|...d...f|
|000038f0| 00 05 1a 6f 00 07 1a 85 | 00 00 1c 03 00 06 1c 06 |...o....|........|
|00003900| 00 05 1c 09 00 06 1c 0b | 00 05 1c 16 00 06 1c 19 |........|........|
|00003910| 00 05 1c 1c 00 06 1c 1e | 00 05 1c 29 00 06 1c 2c |........|...)...,|
|00003920| 00 05 1c 2f 00 06 1c 31 | 00 05 1c 38 00 06 1c 3b |.../...1|...8...;|
|00003930| 00 05 1c 43 00 06 1c 45 | 00 05 1c 48 00 06 1c 4a |...C...E|...H...J|
|00003940| 00 05 1c 53 00 07 1c 67 | 00 00 1d 3e 00 01 1d 53 |...S...g|...>...S|
|00003950| 00 0b 1d 54 00 00 1e 8e | 00 06 1e 91 00 05 1e c5 |...T....|........|
|00003960| 00 06 1e c9 00 05 1e db | 00 06 1e dd 00 05 1e de |........|........|
|00003970| 00 06 1e e3 00 05 1f 0f | 00 06 1f 11 00 05 1f 1a |........|........|
|00003980| 00 06 1f 1e 00 05 1f 5d | 00 06 1f 61 00 05 1f 64 |.......]|...a...d|
|00003990| 00 06 1f 69 00 05 1f 95 | 00 06 1f 98 00 05 1f 99 |...i....|........|
|000039a0| 00 06 1f 9b 00 05 1f 9c | 00 06 1f 9f 00 05 1f a0 |........|........|
|000039b0| 00 06 1f a3 00 05 1f a4 | 00 00 20 54 00 06 20 57 |........|.. T.. W|
|000039c0| 00 05 20 8b 00 06 20 8f | 00 05 20 a1 00 06 20 a3 |.. ... .|.. ... .|
|000039d0| 00 05 20 a4 00 06 20 a9 | 00 05 20 f1 00 06 20 f4 |.. ... .|.. ... .|
|000039e0| 00 05 20 f5 00 06 20 f8 | 00 05 20 f9 00 00 23 4f |.. ... .|.. ...#O|
|000039f0| 00 06 23 52 00 05 23 54 | 00 06 23 57 00 05 23 8c |..#R..#T|..#W..#.|
|00003a00| 00 06 23 90 00 05 23 a3 | 00 06 23 a5 00 05 23 a6 |..#...#.|..#...#.|
|00003a10| 00 06 23 ab 00 05 23 f5 | 00 06 23 f8 00 05 23 f9 |..#...#.|..#...#.|
|00003a20| 00 06 23 fc 00 05 23 fd | 00 06 23 ff 00 05 24 00 |..#...#.|..#...$.|
|00003a30| 00 06 24 05 00 05 24 48 | 00 06 24 4b 00 05 24 4c |..$...$H|..$K..$L|
|00003a40| 00 06 24 4f 00 05 24 50 | 00 00 24 d8 00 06 24 da |..$O..$P|..$...$.|
|00003a50| 00 05 24 ef 00 06 24 f2 | 00 05 25 27 00 06 25 2b |..$...$.|..%'..%+|
|00003a60| 00 05 25 3e 00 06 25 40 | 00 05 25 41 00 06 25 46 |..%>..%@|..%A..%F|
|00003a70| 00 05 25 90 00 06 25 93 | 00 05 25 94 00 06 25 97 |..%...%.|..%...%.|
|00003a80| 00 05 25 98 00 06 25 9b | 00 05 25 ae 00 06 25 b1 |..%...%.|..%...%.|
|00003a90| 00 05 25 c6 00 06 25 c8 | 00 05 25 c9 00 06 25 ce |..%...%.|..%...%.|
|00003aa0| 00 05 26 11 00 06 26 14 | 00 05 26 15 00 06 26 18 |..&...&.|..&...&.|
|00003ab0| 00 00 27 0a 00 08 27 47 | 00 00 28 c4 00 06 28 c7 |..'...'G|..(...(.|
|00003ac0| 00 05 28 fb 00 06 28 ff | 00 05 29 11 00 06 29 13 |..(...(.|..)...).|
|00003ad0| 00 05 29 14 00 06 29 19 | 00 05 29 26 00 06 29 29 |..)...).|..)&..))|
|00003ae0| 00 05 29 2a 00 06 29 2d | 00 05 29 30 00 07 29 35 |..)*..)-|..)0..)5|
|00003af0| 00 05 29 36 00 00 29 f6 | 00 01 2a 04 00 0b 2a 05 |..)6..).|..*...*.|
|00003b00| 00 00 2b a9 00 05 2b ab | 00 07 2b e7 00 05 2b eb |..+...+.|..+...+.|
|00003b10| 00 07 2c 2d 00 05 2c 31 | 00 07 2c 72 00 05 2c 73 |..,-..,1|..,r..,s|
|00003b20| 00 00 2d 47 00 05 2d 49 | 00 07 2d dc 00 05 2d e0 |..-G..-I|..-...-.|
|00003b30| 00 00 2e 5e 00 09 2f 52 | 00 06 2f 55 00 05 2f 58 |...^../R|../U../X|
|00003b40| 00 06 2f 5a 00 05 2f 8c | 00 09 30 4e 00 06 30 51 |../Z../.|..0N..0Q|
|00003b50| 00 05 30 66 00 06 30 68 | 00 05 30 6d 00 09 30 b7 |..0f..0h|..0m..0.|
|00003b60| 00 05 30 b9 00 07 31 66 | 00 05 31 69 00 09 32 a3 |..0...1f|..1i..2.|
|00003b70| 00 05 32 a5 00 07 32 d5 | 00 05 32 d8 00 09 33 ec |..2...2.|..2...3.|
|00003b80| 00 05 33 ee 00 07 34 22 | 00 05 34 25 00 09 34 27 |..3...4"|..4%..4'|
|00003b90| 00 0a 34 31 00 09 35 99 | ff ff 35 2e 00 09 35 b3 |..41..5.|..5...5.|
|00003ba0| ff ff 00 00 00 ea 00 21 | 00 10 00 0c 00 01 00 00 |.......!|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 05 00 13 00 0e 00 01 |........|........|
|00003bc0| 05 00 00 0e 00 00 00 00 | 00 00 00 03 00 10 00 0c |........|........|
|00003bd0| 00 01 02 00 00 00 00 00 | 00 00 00 00 00 04 00 10 |........|........|
|00003be0| 00 0c 00 01 05 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00003bf0| 00 10 00 0c 00 03 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 00 a1 00 0d 00 0a 00 03 | 00 00 00 0a 00 00 00 00 |........|........|
|00003c10| 00 00 00 84 00 0d 00 0a | 00 03 01 00 00 0a 00 00 |........|........|
|00003c20| 00 00 00 00 00 19 00 0d | 00 0a 00 03 02 00 00 09 |........|........|
|00003c30| 00 00 00 00 00 00 00 01 | 00 10 00 0c 00 01 01 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 07 00 10 00 0c 00 03 |........|........|
|00003c50| 00 00 00 0c 00 00 00 00 | 00 00 00 01 00 13 00 0e |........|........|
|00003c60| 00 03 05 00 00 0e 00 00 | 00 00 00 00 00 02 00 13 |........|........|
|00003c70| 00 0e 00 01 00 00 00 0e | 00 00 00 00 00 00 00 01 |........|........|
|00003c80| 00 10 00 0c 00 01 00 00 | 00 0c 00 00 00 00 00 00 |........|........|
|00003c90| 00 00 05 f8 00 13 00 0e | 00 13 00 0e 00 10 00 0c |........|........|
|00003ca0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003cb0| 00 10 00 0c 00 10 00 0c | 00 13 00 0e 00 13 00 0e |........|........|
|00003cc0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003cd0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003ce0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003cf0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d00| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d10| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d20| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d30| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d40| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d50| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d60| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d70| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003d80| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 10 00 0c |........|........|
|00003d90| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|00003da0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003db0| 00 10 00 0c 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|00003dc0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|00003dd0| 00 0d 00 0a 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003de0| 00 10 00 0c 00 0d 00 0a | 00 10 00 0c 00 10 00 0c |........|........|
|00003df0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003e00| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003e10| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003e20| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003e30| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|00003e40| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|00003e50| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003e60| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003e70| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|00003e80| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003e90| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003ea0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003eb0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003ec0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|00003ed0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003ee0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003ef0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003f00| 00 0d 00 0a 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003f10| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003f20| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003f30| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003f40| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003f50| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003f60| 00 10 00 0c 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00003f70| 00 0d 00 0a 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003f80| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003f90| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|00003fa0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|00003fb0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003fc0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 13 00 0e |........|........|
|00003fd0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00003fe0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|00003ff0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004000| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004010| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004020| 00 10 00 0c 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004030| 00 0d 00 0a 00 0d 00 0a | 00 10 00 0c 00 10 00 0c |........|........|
|00004040| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004050| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004060| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004070| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004080| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|00004090| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 0d 00 0a |........|........|
|000040a0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|000040b0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|000040c0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|000040d0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|000040e0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|000040f0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004100| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004110| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004120| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004130| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 13 00 0e |........|........|
|00004140| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004150| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004160| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004170| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 10 00 0c |........|........|
|00004180| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004190| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|000041a0| 00 0d 00 0a 00 0d 00 0a | 00 10 00 0c 00 10 00 0c |........|........|
|000041b0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|000041c0| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 10 00 0c |........|........|
|000041d0| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|000041e0| 00 0d 00 0a 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|000041f0| 00 0d 00 0a 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004200| 00 0d 00 0a 00 0d 00 0a | 00 10 00 0c 00 10 00 0c |........|........|
|00004210| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004220| 00 10 00 0c 00 10 00 0c | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004230| 00 0d 00 0a 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004240| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004250| 00 10 00 0c 00 0d 00 0a | 00 0d 00 0a 00 0d 00 0a |........|........|
|00004260| 00 10 00 0c 00 10 00 0c | 00 13 00 0e 00 13 00 0e |........|........|
|00004270| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 10 00 0c |........|........|
|00004280| 00 10 00 0c 00 10 00 0c | 00 10 00 0c 00 00 00 08 |........|........|
|00004290| 00 ea ff d3 01 21 a6 f0 | 00 00 00 16 00 00 00 00 |.....!..|........|
|000042a0| 00 00 00 10 00 0c 00 03 | 00 00 00 0c 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 0c 00 00 | 00 01 00 2a 00 07 01 71 |........|...*...q|
|000042c0| 01 f4 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+